Browser & Web Performance · Junior · Question 43 of 75
Which caching policy fits the HTML page of a frequently updated site that uses hashed asset URLs?
- ✓Correct answer:
no-cache(or a shortmax-age), so users quickly get the HTML pointing to new assets - 2
max-age=31536000, immutable, like the assets - 3No
Cache-Controlheader at all
Explanation
If the HTML is cached for a year, users keep loading old asset URLs. Without any header browsers may cache it heuristically.