Here is a rough guide to how to improve your Google Page Speed scores on your WordPress sites hosted on Verio VPS. After installing a couple plugins, enabling some appache modules, and updating the htaccess I saw my mobile score of 62 jump up to 80 and my Desktop score jump 6 up to 96.
Page Speed Scores Before:
The next step was to get logged into Putty and enable some modules…
Next I installed a couple WordPress extensions to take advantage of what the modules I enabled.
1: WP Super Cache – Very fast caching plugin for WordPress.
2:WordPress Gzip Compression – Enables gzip-compression if the visitor’s browser can handle it. This will speed up your WordPress website drastically and reduces bandwidth usage as well. Uses the PHP ob_gzhandler() callback.
Next I added the following to my .htaccess file:
Note: I had to add this “BELOW” my existing re-write entries … if I put it above I ran into issues!
####################
#Â Â Â Â Â CACHEÂ Â Â Â Â Â #
####################
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault A3600
<filesmatch “.(jpg|JPG|gif|GIF|png|css|ico|js)$”>
ExpiresDefault “access plus 7 day”
</filesmatch>
</ifmodule>####################
# GZIP COMPRESSION #
####################
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip
Header append Vary User-Agent env=!dont-vary
I saved and uploaded the htaccess file and now this is my Page Speed score: