Report this

What is the reason for this report?

Google PageSpeed Lowered

Posted on March 2, 2014

Hey guys,

I’m very new to this whole unmanaged VPS thing. So please bear with me a little.

In the past, my site is hosted with a managed VPS hosting company and my Google PageSpeed scores were 100/100 for both mobile and desktop. But ever since moving to DO last night, it has reduced to 77 and 83 for mobile and desktop respectively.

Old server PageSpeed: http://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2F96.30.15.156%2F~media

Current PageSpeed with DO: http://developers.google.com/speed/pagespeed/insights/?url=47media.com.sg

I believe the speed reduction is because of caching issue which, for the life of me, don’t know how to solve even after reading the tutorial here: https://www.digitalocean.com/community/articles/how-to-configure-content-caching-using-apache-modules-on-a-vps

Can some kind souls out there help, please? Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi, <br>You have to make some change sin your .htaccess file <br>You can check following tutorial for details. <br>http://gtmetrix.com/leverage-browser-caching.html <br> <br>thank you

Hey Ray and Mamal, <br> <br>Thanks for your replies. But I’m sorry I forgot to mention that I’ve already had browser caching added to my .htaccess file since day 1. However, somehow it doesn’t work with DO’s server. I do not know what other settings must I change. Below are the browser caching I’ve written to my .htaccess file: <br> <br>## EXPIRES CACHING ## <br><IfModule mod_expires.c> <br>AddType ‘text/html; charset=UTF-8’ html <br># Add correct content-type for fonts <br> AddType application/vnd.ms-fontobject .eot <br> AddType font/ttf .ttf <br> AddType font/otf .otf <br> AddType font/x-woff .woff <br> AddType image/svg+xml .svg <br>ExpiresActive On <br>ExpiresByType image/jpg “access plus 1 year” <br>ExpiresByType image/jpeg “access plus 1 year” <br>ExpiresByType image/gif “access plus 1 year” <br>ExpiresByType image/png “access plus 1 year” <br>ExpiresByType text/css “access plus 1 month” <br>ExpiresByType application/pdf “access plus 1 month” <br>ExpiresByType text/x-javascript “access plus 1 month” <br>ExpiresByType application/javascript “access plus 1 month”
<br>ExpiresByType application/x-javascript “access plus 1 month” <br>ExpiresByType application/x-shockwave-flash “access plus 1 month” <br>ExpiresByType image/x-icon “access plus 1 year” <br>ExpiresByType font/ttf “access plus 1 year” <br>ExpiresByType font/otf “access plus 1 year” <br>ExpiresByType font/x-woff “access plus 1 year” <br>ExpiresDefault “access plus 2 days” <br></IfModule> <br>## EXPIRES CACHING ##

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.