19 lines
409 B
Plaintext
19 lines
409 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
|