diff options
| author | 2013-11-04 21:07:33 +0100 | |
|---|---|---|
| committer | 2013-11-04 23:34:38 +0100 | |
| commit | a88963b82724bebb04f224f4a88f298265c65f36 (patch) | |
| tree | cd4947f8547471028de643564eb97f8d7df99586 | |
| parent | a58e4203f60e3318137ccafb9d3fdc8224b50e69 (diff) | |
Ajouts à Apache .htaccess
Ajout en particulier du support des .map (jQuery Source Map)
| -rw-r--r-- | public/.htaccess | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/public/.htaccess b/public/.htaccess index 74c24275e..54d6bd496 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -6,20 +6,24 @@ FileETag None AddDefaultCharset UTF-8 <IfModule mod_mime.c> + AddType application/json .map + AddType application/font-woff .woff + AddCharset UTF-8 .css AddCharset UTF-8 .js + AddCharset UTF-8 .map AddCharset UTF-8 .svg - AddType application/font-woff .woff </IfModule> <IfModule mod_deflate.c> - AddOutputFilterByType DEFLATE application/javascript image/svg+xml text/css text/javascript + AddOutputFilterByType DEFLATE application/javascript application/json image/svg+xml text/css text/javascript </IfModule> <IfModule mod_expires.c> ExpiresActive on ExpiresByType application/font-woff "access plus 1 month" ExpiresByType application/javascript "access plus 1 week" + ExpiresByType application/json "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" @@ -32,7 +36,7 @@ AddDefaultCharset UTF-8 </IfModule> <IfModule mod_headers.c> - <FilesMatch "\.(css|ico|gif|png|woff)$"> + <FilesMatch "\.(css|js|ico|gif|png|woff)$"> Header merge Cache-Control "public" </FilesMatch> </IfModule> |
