Open annevk opened 8 years ago
Probably something else..
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.
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 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
This could use more formal language. Not entirely sure what to suggest, but hardcoding keys isn't the way to go.