Browse Source

Chore: expose cache-control headers

SukkaW 1 year ago
parent
commit
18d55e5b39
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Build/build-public.ts

+ 3 - 1
Build/build-public.ts

@@ -51,10 +51,12 @@ export const buildPublic = task(require.main === module, __filename)(async (span
     span,
     [
       '/*',
-      '  cloudflare-cdn-cache-control: public, max-age=180, stale-while-revalidate=60, stale-if-error=30',
+      '  cache-control: public, max-age=180, stale-while-revalidate=60, stale-if-error=30',
       'https://:project.pages.dev/*',
       '  X-Robots-Tag: noindex',
       '/Modules/*',
+      '  content-type: text/plain; charset=utf-8',
+      '/List/*',
       '  content-type: text/plain; charset=utf-8'
     ],
     path.join(PUBLIC_DIR, '_headers')