mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-07-17 10:33:04 -04:00
.htaccess : pour les nouveaux fichiers HTML, ainsi que la nouvelle structure ./p./i/
Avec la nouvelle structure ./p/i/ , la racine ./p/ est sensée être publique, du coup pas de problème pour le favicon.ico par exemple.
This commit is contained in:
14
p/.htaccess
14
p/.htaccess
@@ -10,13 +10,13 @@ AddDefaultCharset UTF-8
|
||||
AddType application/font-woff .woff
|
||||
|
||||
AddCharset UTF-8 .css
|
||||
AddCharset UTF-8 .html
|
||||
AddCharset UTF-8 .js
|
||||
AddCharset UTF-8 .map
|
||||
AddCharset UTF-8 .svg
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE application/javascript application/json image/svg+xml text/css text/javascript
|
||||
AddOutputFilterByType DEFLATE application/javascript application/json application/xhtml+xml image/svg+xml text/css text/html text/javascript
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
@@ -24,11 +24,13 @@ AddDefaultCharset UTF-8
|
||||
ExpiresByType application/font-woff "access plus 1 month"
|
||||
ExpiresByType application/javascript "access plus 1 month"
|
||||
ExpiresByType application/json "access plus 1 month"
|
||||
ExpiresByType application/xhtml+xml "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"
|
||||
ExpiresByType image/x-icon "access plus 1 month"
|
||||
ExpiresByType text/css "access plus 1 month"
|
||||
ExpiresByType text/html "access plus 1 month"
|
||||
ExpiresByType text/javascript "access plus 1 month"
|
||||
<FilesMatch "\.php$">
|
||||
ExpiresActive Off
|
||||
@@ -36,13 +38,7 @@ AddDefaultCharset UTF-8
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(css|js|ico|gif|png|woff)$">
|
||||
<FilesMatch "\.(css|html|js|ico|gif|png|woff)$">
|
||||
Header merge Cache-Control "public"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
<Files "favicon.ico">
|
||||
Order Deny,Allow
|
||||
Allow from all
|
||||
Satisfy Any
|
||||
</Files>
|
||||
|
||||
Reference in New Issue
Block a user