gzip and image expiration

 

<ifModule mod_gzip.c>  mod_gzip_on Yes  mod_gzip_dechunk Yes  mod_gzip_item_include file .(html?|txt|css|js|php|pl)$  mod_gzip_item_include handler ^cgi-script$  mod_gzip_item_include mime ^text/.*  mod_gzip_item_include mime ^application/x-javascript.*  mod_gzip_item_exclude mime ^image/.*  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*</ifModule>

 

# New Configuration
<IfModule mod_expires.c>    ExpiresActive On    ExpiresByType application/javascript “access plus 24 hours”    ExpiresByType image/x-ico “access plus 1 month”    ExpiresByType image/jpg “access plus 1 month”    ExpiresByType image/jpeg “access plus 1 month”    ExpiresByType image/gif “access plus 1 month” ExpiresByType image/svg+xml “access plus 1 month”    ExpiresByType image/png “access plus 1 month”    ExpiresByType text/css “access plus 1 month” ExpiresByType text/x-javascript “access plus 1 month”
</IfModule>

Advertisements