-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Do not load files from cache (#6447) * Do not load files from cache * changelog * Workaround CORS issue until owncloud/core#40024 is merged and released * Update changelog with further information on Cache-Control header Co-authored-by: Diogo Castro <[email protected]> Co-authored-by: Dominik Schmidt <[email protected]>
- Loading branch information
1 parent
96f6d06
commit 5fbfb78
Showing
4 changed files
with
25 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Bugfix: Do not load files from cache | ||
|
||
When apps (i.e Drawio) tried to load a file, the browser caches the request. | ||
If the file was modified somewhere else and the browser reads the file and its | ||
version from the cache, the content shown to the user is outdated and saving any | ||
changes is impossible until the cache is properly cleared. | ||
Thus we now ask the browser to never load files from its cache in apps. | ||
|
||
In order to achieve that we send a `Cache-Control` header along with requests. | ||
Unfortunately currently released ownCloud 10 versions do not accept that header | ||
in cross site origin setups. If you run ownCloud Web on a different domain than | ||
your ownCloud 10 instance, then you might need to add `Cache-Control` to the list | ||
of allowed CORS headers: | ||
|
||
`occ config:system:set cors.allowed-headers --type json --value '["cache-control"]'` | ||
|
||
Please make sure you don't override previous values! | ||
|
||
|
||
https://github.com/owncloud/web/pull/6447 | ||
https://github.com/owncloud/core/pull/40024 |
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