瀏覽代碼

Fix loading of .woff2 files in .htaccess

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v15.0.0RC1
Julius Härtl 5 年之前
父節點
當前提交
b9f2ce2796
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      .htaccess
  2. 1
    1
      lib/private/Setup.php

+ 1
- 1
.htaccess 查看文件

@@ -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>

+ 1
- 1
lib/private/Setup.php 查看文件

@@ -504,7 +504,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|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";

Loading…
取消
儲存