服务器配置

This commit is contained in:
tianmo committed 2026-10-17 16:09:31 +08:00
1 parent a1b4a63552
commit fa7c8244b0
33 files changed
+1882 -363

No files matched your search

+4
View File
@@ -1,5 +1,7 @@
import {
shouldBlockImageHostRequest,
shouldBlockVideoHostRequest,
shouldBlockFileHostRequest,
shouldBlockSiteHostImageRequest,
shouldBlockUnknownHostRequest
} from '../utils/host-isolation'
@@ -10,6 +12,8 @@ export default defineEventHandler((event) => {
if (
shouldBlockUnknownHostRequest(event)
|| shouldBlockImageHostRequest(event)
|| shouldBlockVideoHostRequest(event)
|| shouldBlockFileHostRequest(event)
|| shouldBlockSiteHostImageRequest(event)
) {
setHeader(event, 'Cache-Control', HOST_ISOLATION_CACHE_CONTROL)