Skip to content

[stable22] Improve caching policy use immutable when loading versionned assets - #31243

Merged
CarlSchwan merged 1 commit into
stable22from
backport/31141/stable22
Mar 2, 2022
Merged

[stable22] Improve caching policy use immutable when loading versionned assets#31243
CarlSchwan merged 1 commit into
stable22from
backport/31141/stable22

Conversation

@backportbot-nextcloud

@backportbot-nextcloudbackportbot-nextcloudBot commented Feb 17, 2022

Copy link
Copy Markdown

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #31141

* Cache css with version in url. This makes most js and css requests to
be cached by the browser
* Force caching previews, the etag is in the url so that if the propfind
gives a new etag, we will refresh it otherwise it's no use to try to
fetch the new etag and do tons of DB queries
Tested with firefox and 'debug' => false (important so that the js/css
urls are generated with ?v= parameter)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwanforce-pushed the backport/31141/stable22 branch from ba6a287 to 1da8fe5CompareFebruary 18, 2022 13:29
@juliusknorr

Copy link
Copy Markdown
Member

Conflicts seem to be resolved according to the diff. Mind to update the PR description then @CarlSchwan ? :)

@solracsfsolracsf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem incomplete as per the diff 🤔 Maybe double-check @CarlSchwan 🍷

@CarlSchwan
CarlSchwan merged commit 5d6be7f into stable22Mar 2, 2022
@CarlSchwan
CarlSchwan deleted the backport/31141/stable22 branch March 2, 2022 17:40
@blizzzblizzz mentioned this pull request Mar 9, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@juliusknorr@solracsf@CarlSchwan