- From: Ben Kelly <notifications@github.com>
- Date: Wed, 17 Aug 2016 09:15:02 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 17 August 2016 16:15:29 UTC
> 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