-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gui/proxy: Prevent browser caching on all requests (#2091)
When the client encounters a network issue on Windows or macOS, it sometimes "caches" this response and will return it to every subsequent request. We make the assumption that this "cache" is handled by Chromium and as such can be disabled by adding the `Cache-Control: no-cache` header to all responses. Since we don't want the remote Cozy to do this (and thus disable useful caches for all clients) we define an Electron response hook to add it on the client side. We've seen improvements during a test phase but don't have any hard evidence that this really solves the issue.
- Loading branch information
1 parent
2115474
commit bb5cd92
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters