mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
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:
parent
347f9b016b
commit
954ed37668
1 changed files with 0 additions and 1 deletions
|
|
@ -97,7 +97,6 @@ function cacheFirstStrategy(event){
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchAndCache(event).catch(nil);
|
fetchAndCache(event).catch(nil);
|
||||||
response.headers.append("Content-Stale", "yes");
|
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue