Skip to content
Snippets Groups Projects
Unverified Commit 14f7b2c4 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #12518 from nextcloud/bugfix/noid/htaccess-woff2

Fix loading of .woff2 files in .htaccess
parents 8bf7ec26 b9f2ce27
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</FilesMatch> </FilesMatch>
# Let browsers cache WOFF files for a week # Let browsers cache WOFF files for a week
<FilesMatch "\.woff$"> <FilesMatch "\.woff2?$">
Header set Cache-Control "max-age=604800" Header set Cache-Control "max-age=604800"
</FilesMatch> </FilesMatch>
</IfModule> </IfModule>
......
...@@ -504,7 +504,7 @@ class Setup { ...@@ -504,7 +504,7 @@ class Setup {
$content .= "\n Options -MultiViews"; $content .= "\n Options -MultiViews";
$content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]"; $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 RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !core/img/manifest.json$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/remote.php"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/remote.php";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment