Speed: Use long caching times #11
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Describe the bug
Configure page resources to have long caching times so browser caches will retain them for longer. The cache duration of each resource URL can be specified by either:
Expires
response header which specifies the point in time the response becomes stale such asExpires: Fri, 10 Aug 2019 20:00:00 GMT
ormax-age
directive to theCache-Control
response header that specifies the number of seconds the response is valid for such asCache-Control: max-age=3600
for 1 hour.To Reproduce
assets.adobedtm.com/caacec67651710193d2331efef325107c23a0145/
satelliteLib-c2082deaf69c358c641c5eb20f94b615dd606662.js
max-age 60
wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/
sig-blk-en.svg
max-age 10
wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/
wmms-blk.svg
max-age 10
wet-boew.github.io/themes-dist/GCWeb/GCWeb/css/
theme.min.css
max-age 10
wet-boew.github.io/themes-dist/GCWeb/GCWeb/js/
theme.min.js
max-age 10
wet-boew.github.io/wet-boew/wet-boew/css/
noscript.min.css
max-age 10
Expected behavior
If
max-age
andExpires
are both used,max-age
takes priority. Recommendation is to set the cache time of page resources to at least 24 hours.The text was updated successfully, but these errors were encountered: