Re: [slightlyoff/ServiceWorker] Reliable way to detect if a fetch is for a new page (#958)

> I'm looking for a reliable way to modify only requests for entire html pages.

To do this, though, you can in theory look at `evt.request.mode` and see if its set to `navigation`.  Also I believe other sites have looked at the `Accept` header to see if it contains `text/html` to do this in the past.

Does that help?

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

Received on Wednesday, 17 August 2016 16:15:29 UTC