#293: Stale-While-Revalidate handling in browser

Visit on Github.

Opened Jul 12, 2018

Hello TAG!

I'm requesting a TAG review of:

  • Name: Stale While Revalidate
  • Specification URL: Explainer
  • Explainer, Requirements Doc, or Example code: Explainer
  • Tests: None
  • Primary contacts: @dtapuska

Further details (optional):

You should also know that...

[please tell us anything you think is relevant to this review]

We'd prefer the TAG provide feedback as (please select one):

  • open issues in our Github repo for each point of feedback
  • open a single issue in our Github repo for the entire review
  • leave review feedback as a comment in this issue and @-notify [dtapuska]

Discussions

Comment by @ylafon Jul 25, 2018 (See Github)

See https://tools.ietf.org/html/rfc5861

Comment by @dbaron Jul 25, 2018 (See Github)

It's not clear to me from the explainer if the idea is that, if the revalidation returns something different, the resource is replaced (which would make sense for something like images or fonts... but not for something like scripts), or if the only effect is that the cache entry is replaced so the fresh copy is used the next time around.

Comment by @dtapuska Jul 25, 2018 (See Github)

No the resource is not replaced in a rendered page. It will only be replaced in any caches. Something requesting the resource again (like adding a script or img tag) will get the newly revalidated copy.

Comment by @ylafon Oct 31, 2018 (See Github)

We discussed this during our Paris F2F, we have no specific comment on this. Thanks,