Files
squoosh/_headers.ejs
2019-03-20 17:15:20 +00:00

23 lines
518 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
# Module imports need CORS, so we enable it for the SDK file.
/squoosh.mjs
Access-Control-Allow-Origin: *
/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