A pretty definitive step process to gain as high a website reading in Google Insights for your Worpress Site on Apache servers, and speed up page loading perception from click to visual to 2 secs. See Post end for results test comment.
First see what Insights complains about for your site here:
Run through the improvements and suggested WP Plugins here:
Optimus Bulk Optimizer
It might take a while until all images are optimized. This depends on the amount and size of the images.
Note: Do not close this tab during the optimization process.
Completed 1134 / 1325
After completing the tweaks I could, I get a minimal improvement score wise, but a better understanding of what is involved but will know by page load times later:
My landing page .htaccess file now contains this:
# stevepedwards.com .htaccess
# Don't compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0 no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
Header set Cache-Control "max-age=604800, public"
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
To search for your .htaccess file you need to enable show hidden files in Settings:
A key question becomes; which of all the .htaccess files should have the additional lines added? Just the main WP site www.stevepedwards.com/debianadmin, or the others found in the search results of cPanel:
Note that www.stevepedwards.com cannot benefit from the Plugins as it is not a WP site, just an index.html in my account /home folder, so only gets 85/100 for mobile. The tweaks would need to be done manually in the html code etc.
For DebianAdmin, the site is still available but I'm getting the 404 error, but the site is fine - it's a google Insights access issue explained in the blog:
This really seems to improve things as I've just clicked 5 of my Posts at 19.20 and each loads in about 2 secs - so unless the Internet is really quiet at the mo...!
Post size makes no odds either - one of my very largest Posts still gets a page visual in 2 secs - key to viewers not moving off site.
Just found out google have changed ranking algo to penalise non SSL sites too - I installed wp-force-ssl plugin which also secured my landing page:
This made no load times difference either.