View Issue Details

IDProjectCategoryView StatusLast Update
0003750Composrcorepublic2022-08-15 00:49
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status closedResolutionnot fixable 
Product Version 
Fixed in Version 
Summary0003750: stale-while-revalidate
DescriptionChrome is implementing stale-while-revalidate cache-control (showing an old cached resource until the new one has downloaded).

https://caniuse.com/?search=stale-while-revalidate (Firefox, Chromium)

This would be great in many areas of Composr, e.g. making admin navigation super-fast (we'd want to make sure that the chance of trivial changes on a page were minimised so it doesn't even need to do a re-paint).

Make it configurable somehow.
TagsType: Performance, Type: Standards compliance
Time estimation (hours)2
Sponsorship open

Relationships

related to 0000305 non-assigned Faster admin navigation 

Activities

Chris Graham

2021-03-15 16:20

administrator   ~0007003

This is an interesting feature. Back in the day we implemented something similar in ocPortal using JavaScript, but it turned out way too complicated and buggy and was removed.

One problem is that it could confuse the user if things jump around unexpectedly. Ideally it should show that a page is stale, like making it less opaque or shadowed or something.

Also there is potential for issue if JS code is running. It could run twice for example.

So, if we do this, it needs a lot of care and testing.

Chris Graham

2022-08-15 00:49

administrator   ~0007445

This is not what I thought (https://web.dev/stale-while-revalidate/). It populates the future cache record with a newer version while using the stale version - but there's no switcheroo.

Issue History

Date Modified Username Field Change
2018-12-11 15:08 Chris Graham New Issue
2018-12-11 15:08 Chris Graham Tag Attached: Type: Performance
2021-03-15 16:18 Chris Graham Description Updated View Revisions
2021-03-15 16:20 Chris Graham Note Added: 0007003
2021-03-15 16:52 Chris Graham Relationship added related to 0000305
2022-08-15 00:45 Chris Graham Tag Attached: Type: Standards compliance
2022-08-15 00:49 Chris Graham Assigned To => Chris Graham
2022-08-15 00:49 Chris Graham Status non-assigned => closed
2022-08-15 00:49 Chris Graham Resolution open => not fixable
2022-08-15 00:49 Chris Graham Note Added: 0007445