Re: [ServiceWorker] Should window.caches be removed (or readonly) for security reasons? (#698)

> Still trying to figure out if restricting window.caches is an overreaction.

If we are considering `caches` specific changes, what about adding something the SW script can use to verify the resource?  Something as simple as an attribute that returned 'serviceworker', 'window', etc depending on the context that .put() the resource in the cache.

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

Received on Monday, 8 June 2015 15:48:21 UTC