We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45ecf37 + 4bcb38c commit 0b4cc1bCopy full SHA for 0b4cc1b
.htaccess
@@ -41,11 +41,12 @@
41
42
# Add cache control for static resources
43
<FilesMatch "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)$">
44
- Header set Cache-Control "max-age=15778463"
45
- </FilesMatch>
46
-
47
- <FilesMatch "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)(\?v=.*)?$">
48
- Header set Cache-Control "max-age=15778463, immutable"
+ <If "%{QUERY_STRING} =~ /(^|&)v=/">
+ Header set Cache-Control "max-age=15778463, immutable"
+ </If>
+ <Else>
+ Header set Cache-Control "max-age=15778463"
49
+ </Else>
50
</FilesMatch>
51
52
# Let browsers cache WOFF files for a week
0 commit comments