diff --git a/.htaccess b/.htaccess index 4986f7d380f..ce84f0698c7 100644 --- a/.htaccess +++ b/.htaccess @@ -43,7 +43,7 @@ # Add cache control for static resources - + Header set Cache-Control "max-age=15778463" @@ -75,6 +75,7 @@ AddType image/svg+xml svg svgz + AddType application/wasm wasm AddEncoding gzip svgz diff --git a/lib/private/Setup.php b/lib/private/Setup.php index a7f0f190fa2..f1ad04671f9 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -530,7 +530,7 @@ class Setup { $content .= "\n Options -MultiViews"; $content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]"; $content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]"; - $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav)$"; + $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|wasm|tflite)$"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\\.php"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\\.ico|manifest\\.json)$"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\\.php";