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:
Ehsan Akhgari 2015-09-16 11:59:01 -04:00
Родитель bac1e66119
Коммит 622b6a36e2
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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"}))
]
);
})