File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4040 </IfModule >
4141
4242 # Add cache control for static resources
43- <FilesMatch "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite)$" >
43+ <FilesMatch "\.(css|js|mjs| svg|gif|png|jpg|ico|wasm|tflite)$" >
4444 <If "%{QUERY_STRING} =~ /(^|&)v=/" >
4545 Header set Cache-Control "max-age=15778463 , immutable"
4646 </If >
Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ public static function updateHtaccess() {
529529 $ content .= "\n Options -MultiViews " ;
530530 $ content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1] " ;
531531 $ content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1] " ;
532- $ content .= "\n RewriteCond %{REQUEST_FILENAME} ! \\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$ " ;
532+ $ content .= "\n RewriteCond %{REQUEST_FILENAME} ! \\.(css|js|mjs| svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$ " ;
533533 $ content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/ajax/update \\.php " ;
534534 $ content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon \\.ico|manifest \\.json)$ " ;
535535 $ content .= "\n RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status) \\.php " ;
You can’t perform that action at this time.
0 commit comments