forked from external-repos/squoosh
24 lines
537 B
Plaintext
24 lines
537 B
Plaintext
# Long-term cache by default.
|
|
/*
|
|
Cache-Control: max-age=31536000
|
|
|
|
# And here are the exceptions:
|
|
/
|
|
Cache-Control: no-cache
|
|
|
|
/serviceworker.js
|
|
Cache-Control: no-cache
|
|
|
|
/manifest.json
|
|
Cache-Control: must-revalidate, max-age=3600
|
|
|
|
# URLs in /assets do not include a hash and are mutable.
|
|
# But it isn't a big deal if the user gets an old version.
|
|
/assets/*
|
|
Cache-Control: must-revalidate, max-age=3600
|
|
|
|
# COOP+COEP for WebAssembly threads.
|
|
/*
|
|
Cross-Origin-Embedder-Policy: require-corp
|
|
Cross-Origin-Opener-Policy: same-origin
|