-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[full-ci] Add Cache-Control to default allowedCorsHeaders #40024
[full-ci] Add Cache-Control to default allowedCorsHeaders #40024
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
💥 Acceptance tests pipeline webUIFfSmoke-3-2-firefox-mariadb10.2-php7.4 failed. The build has been cancelled. |
Are those CI failures expected? Cannot make sense of them in relation to my change |
* 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]>
https://drone.owncloud.com/owncloud/core/35490/10/8 That seems related. |
You're right, I did miss to see the actual failure, what I was seeing was just noise. Will fix! |
2e0d20e
to
66a81da
Compare
Why do the CI builds keep getting canceled? |
I noticed that. "someone" or "something" must be cancelling them. The drone timeout for the core repo is set to 3 hours at https://drone.owncloud.com/owncloud/core/settings |
I've kept restarting it, but to no avail - it keeps being canceled. No idea why. Can anyone help me? |
66a81da
to
9957097
Compare
Aha, at last it looks like a real error: https://drone.owncloud.com/owncloud/core/35537/100/13 |
9957097
to
202a3ff
Compare
202a3ff
to
2bc1d98
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Aaaw yiiiss, finally green. @IljaN wanna review again after my force push? Feel free to merge if you think this is ok. |
Description
I'm trying to get this PR green: owncloud/web#6494
It makes certain requests from oC Web send a Cache-Control header, which fails in a CORS setup.
As you can see, I added
php occ config:system:set cors.allowed-headers --type json --value '["cache-control"]'
which fixed the tests locally for me. Still waiting for the CI to finish at this moment.Related Issue
Motivation and Context
c.f. owncloud/web#6447
"When apps (i.e Drawio) try to load a file, the browser caches the request.
If the file was modified somewhere else, this causes inconsistent results which prevent saving any changes until the cache is properly cleared.
We had observed this is the past in our text editor, hence the noCache addition to the SDK. Now we also saw it in Drawio."
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: