From 18d55e5b39156c05e6d092adbe9f711b97d4d779 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Wed, 18 Dec 2024 00:25:22 +0800 Subject: [PATCH] Chore: expose cache-control headers --- Build/build-public.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Build/build-public.ts b/Build/build-public.ts index e71d596e..ac750a51 100644 --- a/Build/build-public.ts +++ b/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')