aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-11-24 13:58:54 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-24 13:58:54 +0100
commit50f293c346c95f3f4f70d9d01ee1c28d29649694 (patch)
treeebd8294c96a5d74376bedf366f6d633142729d37
parent48c8ee574daa3b56a4ab63e13de15cf4fe3455d6 (diff)
Update mime type font/woff (#4894)
* Update mime type font/woff https://www.rfc-editor.org/rfc/rfc8081 `application/font-woff*` is deprecated for `font/woff*` * Order
-rw-r--r--p/.htaccess2
-rw-r--r--p/themes/.htaccess7
2 files changed, 4 insertions, 5 deletions
diff --git a/p/.htaccess b/p/.htaccess
index f2f2ad901..79e315c07 100644
--- a/p/.htaccess
+++ b/p/.htaccess
@@ -20,8 +20,6 @@ AddDefaultCharset UTF-8
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
- ExpiresByType application/font-woff "access plus 1 month"
- ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/xhtml+xml "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
diff --git a/p/themes/.htaccess b/p/themes/.htaccess
index 796c55ae0..0e78aab3a 100644
--- a/p/themes/.htaccess
+++ b/p/themes/.htaccess
@@ -1,6 +1,6 @@
<IfModule mod_mime.c>
- AddType application/font-woff .woff
- AddType application/font-woff2 .woff2
+ AddType font/woff .woff
+ AddType font/woff2 .woff2
AddCharset UTF-8 .css
AddCharset UTF-8 .svg
@@ -8,8 +8,9 @@
<IfModule mod_expires.c>
ExpiresActive on
- ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/json "access plus 1 month"
+ ExpiresByType font/woff "access plus 1 month"
+ ExpiresByType font/woff2 "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"