mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08: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:
@ -97,7 +97,6 @@ function cacheFirstStrategy(event){
|
||||
}
|
||||
|
||||
fetchAndCache(event).catch(nil);
|
||||
response.headers.append("Content-Stale", "yes");
|
||||
return response;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user