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

Another possible `caches` specific change would be something like:

```
// on service worker
caches.open('foo', { service-worker-only: true }).then(function(cache) {
  // rejects if cache already exists and is not service-worker-only
}):

// on window
caches.open('foo').then(function(cache) {
  // rejects because its not a service worker
});
```

I guess I would prefer something like this to just completely banning caches on window/worker.

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

Received on Monday, 8 June 2015 15:53:11 UTC