Post #1255810
2026-03-12 20:48 UTC
@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?
Replies (1)
-
@patrickbrosset@mas.to 2026-03-13 07:03
@craigfrancis Exactly! If you could detect that the request is, in fact, from the user pressing a reload button, then you might want to bypass your cache and do a network-first refresh.