View Issue Details

IDProjectCategoryView StatusLast Update
3750Composrcorepublic2022-08-15 00:49
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status closedResolutionnot fixable 
Summary3750: 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
Attach Tags
Time estimation (hours)2
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Relationships

related to 305 Not Assigned Faster admin navigation 

Activities

Chris Graham

2021-03-15 16:20

administrator   ~7003

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   ~7445

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
2021-03-15 16:20 Chris Graham Note Added: 0007003
2021-03-15 16:52 Chris Graham Relationship added related to 305
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 Not Assigned => Closed
2022-08-15 00:49 Chris Graham Resolution open => not fixable
2022-08-15 00:49 Chris Graham Note Added: 0007445