mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Chore: expose cache-control headers
This commit is contained in:
parent
571c8064b5
commit
18d55e5b39
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user