Skip to content

Webhint - HTTP Cache hint #76

@lucaskardo

Description

@lucaskardo

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featurenew featureautofix featurerelated to webhint autofix feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions