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

Webhint - HTTP Cache hint #76

Open
lucaskardo opened this issue Jun 25, 2020 · 0 comments
Open

Webhint - HTTP Cache hint #76

lucaskardo opened this issue Jun 25, 2020 · 0 comments
Labels
autofix feature related to webhint autofix feature Feature new feature

Comments

@lucaskardo
Copy link
Contributor

lucaskardo commented Jun 25, 2020

http-cache verifies that the page and all its resources follow a good, sustainable caching strategy.

What does the hint check?
This hint checks the configuration of the cache-control header to validate that the page and resources have a good caching strategy:

all requests have a Cache-Control header, otherwise the behavior can change from browser to browser
main page should have a short cache (<= 3 minutes) or not cache at all
static resources such as JavaScript, CSS, images, etc.:
have a long expiry value (>= 1 year)
use the immutable directive
follow filename/path-based revving, and not one based on query string parameters (see: problems with proxies)

**There is no autofix for this hint. Arjan Deploy should deploy with an optimum cache policy.

Expected Behavior:
Arjan Audit should show you a reminder to deploy with Arjan or use an efficient cache policy + link.

https://webhint.io/docs/user-guide/hints/hint-http-cache/

@lucaskardo lucaskardo added Feature new feature autofix feature related to webhint autofix feature labels Jun 25, 2020
@lucaskardo lucaskardo added this to Backlog in Torus Host via automation Jun 25, 2020
@gkpty gkpty moved this from Backlog to Icebox in Torus Host Jul 11, 2020
@gkpty gkpty added this to Web Hints in Torus Tools Oct 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autofix feature related to webhint autofix feature Feature new feature
Projects
Torus Host
  
Icebox
Torus Tools
Web Hints
Development

No branches or pull requests

1 participant