HTML pages are cached for 1+ days, causing visitors to see outdated content after deploys.
By Seoxpert Editorial · Published
When HTML is cached too aggressively, users may not see updates or critical fixes until their cache expires. This can lead to outdated content being served, harming user experience and delaying the visibility of urgent changes.
Visitors may see stale HTML content for up to a day or more after updates are deployed.
The crawler inspects HTTP response headers and flags HTML pages with Cache-Control: max-age set to 86400 seconds (1 day) or higher.
Problematic Cache-Control header for HTML
Cache-Control: public, max-age=86400Recommended Cache-Control header for HTML (always revalidate
Cache-Control: public, max-age=0, must-revalidateAlternative: Short browser cache, longer CDN cache
Cache-Control: public, max-age=60, s-maxage=600Long caching on HTML prevents users from seeing updates or hotfixes promptly, leading to stale content.
Yes, but use fingerprinted filenames for assets and only apply aggressive caching to those, not HTML.
Use custom headers in next.config.ts or middleware to set short or no-cache for HTML and long max-age for assets.
The CDN may also cache HTML for too long, serving stale pages until it is purged or the cache expires.
Run a scan to see if HTML Pages Cached Aggressively (max-age ≥ 1 day) affects your pages.
Scan my website →