Re: [ServiceWorker] Should mixed content always be blocked? (#813)

> 2) request’s window is an environment settings object (and, therefore, not no-window)

How can this be persisted to Cache?  In most cases the window would be long gone.  So storing a passthrough request in Cache would strip is passthrough status.

But I guess it mostly doesn't matter if it can be persisted.  You can do cache.match(passthroughRequest) to return a cached response.  It will match the persisted request even though one is "passthrough" and the other is not.  The respondWith() mixed content checking will use then use the original FetchEvent.request to determine if its "pass through" when determining if the response is ok.

I think the only problem is if you did a cache.keys() and then used one of the resulting requests in a fetch().  Then it would no longer be treated as passthrough and fail.

Right?  Or have I confused myself again?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/813#issuecomment-173800543

Received on Friday, 22 January 2016 04:06:39 UTC