hint: Allow `stale-while-revalidate` (and `stale-if-error`?) Cache-Control extensions

I believe these directives were dismissed at some point due to no browser support, however there’s increasing support for stale-while-revalidate.

stale-if-error on the other hand isn’t directly supported by browsers, though some CDNs such as Fastly and KeyCDN support it, see the support table in https://www.ctrl.blog/entry/cdn-rfc5861-support.html.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 2
  • Comments: 27 (15 by maintainers)

Most upvoted comments

stale-while-revalidate got adopted by Chrome and Firefox, so that should definitely be supported now.
stale-if-error while not supported, yet, should not be “breaking” anything as well. I mean, if a browser starts supporting it - it will use it. If it does not support it - it will ignore it. So no need to alert about it at this point. If it will be deprecated, then an alert can be added, but its wording will need to be different.