Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed: Use long caching times #11

Open
delisma opened this issue May 1, 2021 · 0 comments
Open

Speed: Use long caching times #11

delisma opened this issue May 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@delisma
Copy link
Contributor

delisma commented May 1, 2021

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:

  1. setting an Expires response header which specifies the point in time the response becomes stale such as Expires: Fri, 10 Aug 2019 20:00:00 GMT or
  2. adding a max-age directive to the Cache-Control response header that specifies the number of seconds the response is valid for such as Cache-Control: max-age=3600 for 1 hour.

To Reproduce

  1. satelliteLib-c2082deaf69c358c641c5eb20f94b615dd606662.js
    assets.adobedtm.com/caacec67651710193d2331efef325107c23a0145/
    satelliteLib-c2082deaf69c358c641c5eb20f94b615dd606662.js
    max-age 60
  2. sig-blk-en.svg
    wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/
    sig-blk-en.svg
    max-age 10
  3. wmms-blk.svg
    wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/
    wmms-blk.svg
    max-age 10
  4. theme.min.css
    wet-boew.github.io/themes-dist/GCWeb/GCWeb/css/
    theme.min.css
    max-age 10
  5. theme.min.js
    wet-boew.github.io/themes-dist/GCWeb/GCWeb/js/
    theme.min.js
    max-age 10
  6. noscript.min.css
    wet-boew.github.io/wet-boew/wet-boew/css/
    noscript.min.css
    max-age 10

Expected behavior
If max-age and Expires are both used, max-age takes priority. Recommendation is to set the cache time of page resources to at least 24 hours.

@delisma delisma added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels May 1, 2021
@delisma delisma self-assigned this May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant