diff options
Diffstat (limited to 'p/.htaccess')
| -rw-r--r-- | p/.htaccess | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/p/.htaccess b/p/.htaccess new file mode 100644 index 000000000..2b1e27a88 --- /dev/null +++ b/p/.htaccess @@ -0,0 +1,44 @@ +<IfModule mod_dir.c> + DirectoryIndex index.php index.html +</IfModule> + +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 .html + AddCharset UTF-8 .js + AddCharset UTF-8 .svg +</IfModule> + +<IfModule mod_deflate.c> + AddOutputFilterByType DEFLATE application/javascript application/json application/xhtml+xml image/svg+xml text/css text/html text/javascript +</IfModule> + +<IfModule mod_expires.c> + ExpiresActive on + 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 + </FilesMatch> +</IfModule> + +<IfModule mod_headers.c> + <FilesMatch "\.(css|html|js|ico|gif|png|woff)$"> + Header merge Cache-Control "public" + </FilesMatch> +</IfModule> |
