New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 639036 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 639034
Owner: ----
Closed: Aug 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Manually deleting caches from Cache Storage causes errors putting entries into a cache with the same name in the future

Project Member Reported by aaronsn@google.com, Aug 18 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce the problem:
1. Create a Cache in Cache Storage.
2. Manually delete the cache in Developer Tools > Application > Cache Storage.
3. Create a Cache with the same name.
4. Try to put entries into the Cache, and it will fail with "DOMException: Entry was not found."

The following code should reproduce. Run it once, then manually delete the cache, then run it again.

fetch(new Request('https://www.google.com/')).then(function(response) {
  caches.open('ExampleCache').then(function(cache) {
    cache.put('google', response);
  });
});

What is the expected behavior?
It shouldn't cause an error when you manually delete a cache using dev tools and then try to use it again.

What went wrong?
This error was thrown:

DOMException: Entry was not found.

Did this work before? N/A 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 22.0 r0
 
Cc: tkonch...@chromium.org
Mergedinto: 639034
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment