Elektrine lite

← Feed

@patrickbrosset@mas.to

Post #961683

2026-03-12 18:40 UTC

If you use a service worker's fetch event listener, would a `isReloadNavigation` boolean property be helpful to you? It would indicate if the current request was a user-initiated reload (e.g., refresh button click, location.reload(), or history.go(0)).

Replies (1)

  • @patrickbrosset ignore my input as I’m not currently using a Service Worker, but this is interesting… is the idea to allow something like a user initiated refresh (they press button) to cause a full redownload of everything from the server, vs a JS initiated refresh to work more from the cache?

    Open ##1255810