torus-tools / seo_fix

Use the power of webpack to minify/compress all your static assets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webhint - HTTP Cache hint

lucaskardo opened this issue · comments

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/