http://samaxes.com/2009/01/more-on-compressing-and-caching-your-site-with-htaccess/
When we upload a site in Kewell, Cahill, can you please add these lines at the end of the .htaccess file. This enables caching.
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
When we upload a site in Kewell, Cahill, can you please add these lines at the end of the .htaccess file. This enables caching.
<filesMatch "\.(flv|FLV|gif|GIF|jpg|JPG|jpeg|JPEG|png|PNG|ico|ICO|swf|SWF)$"> Header set Cache-Control "max-age=7257600"</filesMatch><filesMatch "\.(js|JS|css|CSS|pdf|PDF|txt|TXT)$"> Header set Cache-Control "max-age=604800"</filesMatch><filesMatch "\.(html|HTML|htm|HTM)$"> Header set Cache-Control "max-age=600"</filesMatch><filesMatch "\.(pl|PL|php|PHP|cgi|CGI|spl|SPL)$"> Header unset Cache-Control Header unset Expires Header unset Last-Modified FileETag None Header unset Pragma</filesMatch>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##