Added image, JS and CSS cache settings to htaccess

This commit is contained in:
Marcin Kurczewski 2014-10-25 12:26:15 +02:00
parent cc57d56023
commit 11ceb819a9

View file

@ -21,3 +21,17 @@ RewriteRule ^/?api/(.*) api-dispatch.php?q=$0 [QSA,L]
<IfModule mod_mime.c> <IfModule mod_mime.c>
AddType text/plain .tpl AddType text/plain .tpl
</IfModule> </IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
</IFMOdule>