.htaccess updates, expires and compression headers
This commit is contained in:
parent
4040fb5d58
commit
2eea8b22f2
1 changed files with 23 additions and 11 deletions
12
.htaccess
12
.htaccess
|
@ -27,3 +27,15 @@ RewriteRule ^(.*)$ index.php?q=$1&%{QUERY_STRING} [L]
|
|||
</IfModule>
|
||||
|
||||
DefaultType image/jpeg
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
ExpiresByType text/html "now"
|
||||
ExpiresByType text/plain "now"
|
||||
</IfModule>
|
||||
|
||||
<ifmodule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
|
||||
AddOutputFilterByType DEFLATE application/x-javascript application/javascript
|
||||
</ifmodule>
|
||||
|
|
Reference in a new issue