fix (#229): remove header mutation

On IOS, mutate an HTTP response would throw with the error "Headers object's guard is 'immutable". The idea of that mutation was to provide a way in frontend land to detect when a response is fresh or stale from a cache. As of today, we don't use that information so we removed the associated code
This commit is contained in:
Mickael Kerjean
2020-02-18 08:20:59 +11:00
parent 347f9b016b
commit 954ed37668

View File

@ -97,7 +97,6 @@ function cacheFirstStrategy(event){
}
fetchAndCache(event).catch(nil);
response.headers.append("Content-Stale", "yes");
return response;
});
});