зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204596 - Part 3: Store the responses with manual redirect in the tests added for bug 1164397; r=bkelly
This needs to be done so that we match the manual redirect mode for navigations when the response is stored in the cache.
This commit is contained in:
Родитель
bac1e66119
Коммит
622b6a36e2
|
@ -4,7 +4,7 @@ self.addEventListener("install", function(event) {
|
|||
event.waitUntil(
|
||||
self.caches.open("origin-cache")
|
||||
.then(c => {
|
||||
return c.add(prefix + 'index-https.sjs');
|
||||
return c.add(new Request(prefix + 'index-https.sjs', {redirect: "manual"}));
|
||||
})
|
||||
);
|
||||
});
|
||||
|
|
|
@ -6,8 +6,8 @@ self.addEventListener("install", function(event) {
|
|||
.then(c => {
|
||||
return Promise.all(
|
||||
[
|
||||
c.add(prefix + 'index.sjs'),
|
||||
c.add(prefix + 'index-to-https.sjs')
|
||||
c.add(new Request(prefix + 'index.sjs', {redirect: "manual"})),
|
||||
c.add(new Request(prefix + 'index-to-https.sjs', {redirect: "manual"}))
|
||||
]
|
||||
);
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче