diff options
| -rw-r--r-- | public/.htaccess | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 000000000..624b29720 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,40 @@ +<IfModule mod_dir.c> + DirectoryIndex index.php index.html +</IfModule> + +FileETag None +AddDefaultCharset UTF-8 + +<IfModule mod_mime.c> + AddCharset UTF-8 .css + AddCharset UTF-8 .js + AddCharset UTF-8 .svg + AddType application/font-woff .woff +</IfModule> + +<IfModule mod_expires.c> + ExpiresActive on + ExpiresByType application/font-woff "access plus 1 month" + ExpiresByType application/javascript "access plus 1 week" + 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 year" + ExpiresByType text/css "access plus 1 week" + ExpiresByType text/javascript "access plus 1 week" + <FilesMatch "\.php$"> + ExpiresActive Off + </FilesMatch> +</IfModule> + +<IfModule mod_headers.c> + <FilesMatch "\.(css|ico|gif|png|woff)$"> + Header merge Cache-Control "public" + </FilesMatch> +</IfModule> + +<Files "favicon.ico"> + Order Deny,Allow + Allow from all + Satisfy Any +</Files> |
