Use stale-if-errror in Cache Control when available [🟥 awaiting full support] #2291
Labels
Backend (Server)
Related to the server-side (includes PHP, HTML, etc).
Milestone
https://caniuse.com/mdn-http_headers_cache-control_stale-if-error
When this is supported, I'm thinking we only incorporate it into static files like images and fonts. Maybe CSS too.
The above would have a max age of 1 year, then for the next 30 days it would return the "stale" resource but revalidate in the background. On error, it would return the stale resource for 1 day. I'd like to consider extending that 1-day length to be longer as well... Maybe use
2592000
there too?Would this be beneficial for PHP/HTML requests? I need to research what is considered an "error" state where the stale resource would be used...
Related: #1844
The text was updated successfully, but these errors were encountered: