I checked my site with Google Pagespeed. It states two high priority issues which I’m trying to follow.
- activate compression
- Setting an expiry date or a maximum age in the HTTP headers for static resources
For 1: I tried to use mod_deflate and added the following lines to .htaccess
Even after a restart Pagespeed is still saying that the content like css/js files which are locally loaded is not compressed. At least phpinfo is showing mod_deflate - so the module should be available.
For 2: I googled and found mod_expires which I like to use with the following .htaccess entries
ExpiresByType text/css "access plus 1 week"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/x-icon “access plus 1 year”
Any chance to get mod_expires on the Shared Webserver? It seems that this module is missing - at least I do not see it with phpinfo.
Any tipps are more than welcome