Source code
Revision control
Copy as Markdown
Other Tools
/* global context testDone:true */
let cache;
let url = "foo.html";
caches
.open("redirect-" + context)
.then(c => {
cache = c;
var response = Response.redirect(redirectURL);
is(response.headers.get("Location"), redirectURL);
return cache.put(url, response);
})
.then(_ => {
return cache.match(url);
})
.then(response => {
is(response.headers.get("Location"), redirectURL);
testDone();
});