Skip to content
Snippets Groups Projects
Unverified Commit 59f4f5cb authored by MichaIng's avatar MichaIng Committed by GitHub
Browse files

Merge pull request #37250 from nextcloud/backport/37010/stable24

[stable24] Fix Cache-Control header of non-versioned assets
parents 24b536f9 3b04ae70
No related branches found
No related tags found
No related merge requests found
......@@ -41,11 +41,12 @@
# Add cache control for static resources
<FilesMatch "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)$">
Header set Cache-Control "max-age=15778463"
</FilesMatch>
<FilesMatch "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)(\?v=.*)?$">
<If "%{QUERY_STRING} =~ /(^|&)v=/">
Header set Cache-Control "max-age=15778463, immutable"
</If>
<Else>
Header set Cache-Control "max-age=15778463"
</Else>
</FilesMatch>
# Let browsers cache WOFF files for a week
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment