Skip to content

Commit

Permalink
Merge pull request #12518 from nextcloud/bugfix/noid/htaccess-woff2
Browse files Browse the repository at this point in the history
Fix loading of .woff2 files in .htaccess
  • Loading branch information
rullzer authored Nov 18, 2018
2 parents 8bf7ec2 + b9f2ce2 commit 14f7b2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</FilesMatch>

# Let browsers cache WOFF files for a week
<FilesMatch "\.woff$">
<FilesMatch "\.woff2?$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
</IfModule>
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public static function updateHtaccess() {
$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|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/manifest.json$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/remote.php";
Expand Down

0 comments on commit 14f7b2c

Please sign in to comment.