Added image, JS and CSS cache settings to htaccess
This commit is contained in:
parent
cc57d56023
commit
11ceb819a9
1 changed files with 14 additions and 0 deletions
|
@ -21,3 +21,17 @@ RewriteRule ^/?api/(.*) api-dispatch.php?q=$0 [QSA,L]
|
|||
<IfModule mod_mime.c>
|
||||
AddType text/plain .tpl
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue