w3c / ServiceWorker

Service Workers
https://w3c.github.io/ServiceWorker/
Other
3.63k stars 312 forks source link

Handle Fetch "shift+reload" #952

Open annevk opened 8 years ago

annevk commented 8 years ago

This could use more formal language. Not entirely sure what to suggest, but hardcoding keys isn't the way to go.

NekR commented 8 years ago

Probably something else..

annevk commented 8 years ago

You prolly want to describe the effect of the action more than the way to achieve. And then mention a common or encouraged way to achieve it in a note.

jakearchibald commented 8 years ago

We could hook into the cache mode of the navigation request. This would be easier if the navigation part of the HTML spec made reference to this feature.

wanderview commented 8 years ago

We could hook into the cache mode of the navigation request. This would be easier if the navigation part of the HTML spec made reference to this feature.

We used to do this and had to explicitly stop doing it. We ran into situations where developers would use addons or devtools to bypass http cache. In these cases they did not expect their service workers to stop working.

We have a separate set of flags we look for:

https://dxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShellLoadTypes.h#105

That are essentially set explicitly up in the UX layer for various things:

https://dxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#1792