Re: [w3c/ServiceWorker] Proposal: FetchEvent.navigationLoadType (#1167)

@davidcblack `reload` would only be true in cases we'd change the cache mode. So pressing the refresh button, cmd-r etc etc.

> Honestly I think this API would be a lot simpler and easier to understand as something like an enum of actual user events

This makes it difficult to express form submissions that are also a reload. Also, a single enum isn't extensible. With the proposed design we could introduce `back` and `forward` which provide specifics to the type of history navigation. Changing an enum in this way would break existing usage.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1167#issuecomment-343211553

Received on Thursday, 9 November 2017 16:33:37 UTC