mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
# Long-term cache by default.
|
|
/*
|
|
Cache-Control: max-age=31536000
|
|
Access-Control-Allow-Origin: *
|
|
|
|
# And here are the exceptions:
|
|
/
|
|
Cache-Control: no-cache
|
|
|
|
/serviceworker.js
|
|
Cache-Control: no-cache
|
|
|
|
/sdk.mjs
|
|
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
|