Chore: expose cache-control headers

This commit is contained in:
SukkaW 2024-12-18 00:25:22 +08:00
parent 571c8064b5
commit 18d55e5b39

View File

@ -51,10 +51,12 @@ export const buildPublic = task(require.main === module, __filename)(async (span
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/*', 'https://:project.pages.dev/*',
' X-Robots-Tag: noindex', ' X-Robots-Tag: noindex',
'/Modules/*', '/Modules/*',
' content-type: text/plain; charset=utf-8',
'/List/*',
' content-type: text/plain; charset=utf-8' ' content-type: text/plain; charset=utf-8'
], ],
path.join(PUBLIC_DIR, '_headers') path.join(PUBLIC_DIR, '_headers')