I promised you in the last post that I would tell you how to optimize your blog so that you can increase it’s speed and at the same time keep Google happy. Before optimising this blog and moving it to {inmotion hosting}, it used to take over 12 seconda for the page to fully load. Now it takes around 3 seconds. You have to admit that is a pretty big difference. This post will be the first of a series of posts that wil explain how it did it. The first step was to resolve the issues suppled by Google’s Page Speed Insight. The initial scan of this blog showed that as far as Google was concerned I had some high priority issues to resolve.
For the purpose of this post I will show you how to resolve these issues starting off with serving scaled images.
How To Serve Scaled Images
A scaled image is when you’re displaying a scaled down image of a full size image that is hosted on your blog. This usually
happens when you reduce the size of an image so that it fits within the confines of your post, which was my issue. There are also many sites who scale down their images so they fit in their sidebars or just to display a smaller version of the original one. The problem is that although people think that they’re conserving bandwidth and increasing speed by doing this they’re not because the server actually downloads the full image before displaying the scaled down one.
The solution is to only display images in the actual size you want. This will mean resizing the image offline and then uploading it back to your blog. Now when people access your site they’re only downloading the smaller image thereby increasing blog speed. Once I did this that warning disappeared.

How To Leverage Browser Caching
What Google wants us to do is to set an expiry date because ‘Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Too bad Google doesn’t show us how to do this. I looked for ages on the net and tried many plugins. None of the plugins I tested work I wasn’t having much luck on the net either until I came upon this post, How To Leverage Browser Caching In Apache.
What I did was to add the following code, just as the post suggested, into my .htaccess file and that resolved the second issue.
# Begin Leverage Browser Caching
Header unset Pragma
FileETag None
Header unset ETag
<FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf|pdf|flv|mp3)$”>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault “access plus 14 days”
Header set Cache-Control “public”
</IfModule>
</FilesMatch>
<FilesMatch “\.(html|htm|xml|txt|xsl)$”>
Header set Cache-Control “max-age=7200, must-revalidate”
</FilesMatch>
# End Leverage Browser Caching
Just keep in mind that the VPS Server I’m hosted on uses Apache and I made sure of that before making these changes.

GZIP Compression On WordPress
Most people know that it’s a lot easier to upload or download a zipped file than an uncompressed one. This is because the zipped file is so much smaller. The same applies to websites which is why Google is looking to see if websites have it enabled. Naturally the first thing I tried was the WordPress plugins but although I didn’t get any error messages as far as Google was concerned my blog wasn’t compressed. Damn!
Oh well, I may as well resort to Googling to find an answer, and after a long search and many trials I came across How To Enable GZIP Compression On Apache. Once again, take note, your server has to be running Apache for this to work! This is the code I added to the .htaccess file.
# Enable GZIP
<IfModule mod_mime.c>
AddType application/x-javascript .js
AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
# End GZIP
I went back and tested it with Google and much to my delight I had resolved another issue.
If you want to check to see whether or not your site is compressed I found a site that will do a Http Compression Test.

Optimize Images For Your Blog
The Google Page Speed Insight checks your site for optimised images because it knows they make your site load faster. This is because an optimised image is much smaller than the original. Luckily there is a WordPress plugin that will do that for all images in the media file, WP Smush.it. Unfortunately not all my images are in that file, but luckily I found a website, ImageOptizer.net, which allows you to optimize your images online. Better still, they had available a free tool for download that will let you optimize single files or even whole directories. That was a much better option. I simply downloaded my image directories, optimised them and then uploaded them again.
To improve site speed even further I downloaded the images from advertisers, optimised them and then uploaded them to my server. This is a much better option because there are times when the host site is down which then slows yours down as it tries to retrieve the image.
That;s it for this session. Don’t forget to join my list so you don’t miss out on future posts on how to optimize your blog. If you found this post helpful you may want to promote it via your favourite social network.
I would love to know if these tips worked for you and if you have any other ideas we can use to make our sites go faster. You know the drill, just leave a comment.
The FlexSqueeze Theme gives my blog that professional look. I loved it so much that I bought the developers license. It's the easiest most customizable theme I've come across. See how easy it is to change your theme's appearance! Compare it to Thesis to see how much better it is! Check out some of the latest Latest Updates
I highly recommend you to get your FlexSqueeze copy today!
Copyright secured by Digiprove © 2012- Covert Messenger New WordPress Plugin Lets You Easily Create Cool "Intant Messenger" Ads On Your Blogs - These Ads Will Suck Your Visitors In and Literally Force Them To Click On Any Link You Want!
- CommentLuv Premium - Unlimited License The famous CommentLuv Premium is active on over 50,000 WordPress blogs. Finally available on JVZoo. Increase your comments, traffic and encourage visitors to share your posts. Affiliates http://ql2.me/clpaff
- OTO Easy Video Press Flipping / Developer License
- YourTube SuperStore Learn how to get a "Store Tab" in your YouTube channel so you can start selling products right from INSIDE your own YouTube channel as soon as tonight!
JVZoo Killer WordPress Plugins.
Tagged with: blog optimise • Gzip • page speed • web cache
Filed under: Optimize Techniques • Wordpress Plugins • WordPress Tutorial
Like this post? Subscribe to my RSS feed and get loads more!









This is going to sound strange coming from me about you but wasn’t all that a lot of work? Man, that sounds like a lot of work! I had to stop using Smush.it because it messed up my blog; not sure you remember the post I wrote about that. The other stuff… I’m not sure if I’m on Apache or not; no idea how to find out either. Still, overall my site runs fairly quickly, although WordPress does have this thing where it automatically creates images in multiple sizes and they end up in that image folder, and that’s something I wish I could control better.
Mitch Mitchell recently posted…The Trouble With Getting Your Friends, Family & Local People To View Your Blogs
Twitter: AussieSire
Hey Mitch, it was a lot of work, and that was only half of it
Your CPanel will tell you if you’re running Apache. As for Smush.it, if you don’t use it you can always optimise the pictures before uploading them to your blog.
You also have a couple of images, especially the one with the parrot, that could be scaled.
Anyway, I did all the hard work for you, the research and the trial and testing of what I found. The easy part is to make use of my findings.
Sire recently posted…Review Of The Covert Social Buzz Plugin
I don’t have cPanel with 1&1 so maybe I need to go another route. And don’t be picking on my parrot! lol
Mitch Mitchell recently posted…Ode To Joy Day!
Twitter: AussieSire
Really? One of the requirements I was looking for when looking for a VPS host was that it had CPanel.
Sire recently posted…Is There An Alternative To ClickBank?
Twitter: WinAppleWorld
W3 cache plugin works best for my blog. 2nd time a visitor visits my blog, the page loads in couple of seconds. Caching is the best way to speed up.
Anchit Shethia recently posted…IPv6 Internet Addresses now available in India
Twitter: AussieSire
Caching is very important but it’s not the only way to speed up your blog. Also you never know if Google will downgrade a site if it does not score well in the optimisation field.
Sire recently posted…WordPress Plugin That Improves Your Bounce Rate
Twitter: bivori
Thank you Sire. It is in fact a gem post. Leverage browser cache and Gzip compression was the most searched solution. Thanks. I’m implementing them in my htaccess files right now.
Suresh Khanal recently posted…Twitter Tools to Increase Followers – Twiends
Twitter: AussieSire
Cool, don’t forget to come back and tell us how it all went.
Sire recently posted…Will Adbeans Affect Your PR
Twitter: bivori
I tried to add the Leverage Browser Cache and gZip codes but it might be I used it in wrong location or I need to modify the code, I’m just getting Error 500.
I’m using bulletProof Security plugin and it allows me to add custom code in .htaccess file. But I guess there is something wrong. I could not make it work for me. :(
Suresh Khanal recently posted…WordPress Hosting, Theme And Plugins Used in Bivori.com
Twitter: AussieSire
Did you add the code one at a time or both together? I suggest doing it one at a time to see which one is causing the problem.
I’ve never heard of the bulletProof plugin. I download the .htaccess file to edit it and then upload it. As for positioning I don’t think it makes a difference. I just added it at the end.
Also, did you make sure your server is using Apache.
Sire recently posted…Why I Love WP Zon Builder
Twitter: antjon
What would we do without you Sire, my load speed average at the moment but anything i can do to increase it more i will do, so thanks for all your hard work much appreciated
antjon recently posted…growing annuals adds colour to your garden
Twitter: AussieSire
My pleasure antjon. No reason why everyone should have to sweat it out when I’ve already done the leg work.
Sire recently posted…Lotto Affiliate
Twitter: IsmailNZ
So many tools to optimize our blog. It really gets better each day. WordPress rock!
Ismail N recently posted…Twilight Saga – Breaking Dawn Part 2
Twitter: AussieSire
It sure does.
Sire recently posted…Make Money Online
Optimizing images is a great idea, and this sounds like an incredibly useful tool to have for your site. Slow loading and broken images can really hurt your initial impressions with new visitors. It sounds crazy but even something as small as a slowly loaded image can be enough to drive people away from your site. Having an optimization tool like this can be really useful and add to the overall presentation of your pages. Very useful stuff!
Twitter: AussieSire
It’s also the easiest part of the whole exercise to optimise a blog Paul
Sire recently posted…Using Images To Make Your Posts Stand Out
Hi Sire,
As Mitch said, it looks like a helluva lot of work but well done you for finding a solution to the problem of loading times – the increase of around 400% is huge and not something to be sniffed at, at all. As ever I can’t use it though because I have a Blogger blog but no matter, it’s still impressive to know about these things.
Best wishes,
Roz
Roz Bennetts recently posted…Car Drifting Day with Drift Limits at Bovingdon Airfield
Twitter: AussieSire
It was a lot of work Roz but standing back and seeing all the issues resolved, not to mention the burst in speed, made it all worth while.
Even though you have a blogger blog you could still make sure you only serve optimised images
Sire recently posted…Friday Funnies #39 Best For Laughs
Twitter: HotBlogTips
Hi Sire, I just had a few things done to my blog from reviewing a service but it did,t help all that much. I couldn’t give them a good review so I won’t be promoting them but they were trying to speed my blog up. It’s already pretty fast but I’ll want to add more to it, sooner or later.
I’ll have to look into GZIP, that’s the first I’ve heard about compressing a website while online.


Brian Hawkins recently posted…Reviewing Lap Desks By LapGear
Twitter: AussieSire
Hey Brian, I just entered your site into Google’s PageSpeed Insight and the only thing listed under high priority is to leverage browser caching. I’d do it just to keep Google happy, if you’re that way inclined, because your blog does load really quickly.
Sire recently posted…How To Optimize Your WordPress Blog
Twitter: HotBlogTips
Thanks Sire, I can also remove old plugins and clean up my old CSS. These are things I know to do but keep putting them off.
Brian Hawkins recently posted…Connecting YouTube and Google Plus Update
Being new to WordPress, this article as well as the comments below somehow give me an idea on what to do on the optimization. I would be implementing these guidelines when I will be putting up my wordpress blog soon. I think it’s a bit complicated but there are tools to help simplify the optimization.
Gerrid Smith recently posted…What is Google+ Local?
Twitter: AussieSire
That’s good Gerrid. I hope it works out for you. It’s not really complicateted. Heck, if I could do it anyone can.
Sire recently posted…Friday Funnies #38 Irish Jokes And More
Great post for WordPress blog optimization! Enabling Gzip compression will help speed-up your WordPress website drastically and reduces bandwidth usage as well. This is possible only if visitor’s browser can support it.
Twitter: AussieSire
One would think that these days most browsers would have it enabled Thomas.
Sire recently posted…Friday Funnies #41 Horny Wife
Twitter: thebestsitescom
Thanks for this good stuff… for those who are interested in further research I’d recommend using CloudFlare as a CDN to speed up your website load speed.
Twitter: AussieSire
I actually did join CloudFlare after writing this post but didn’t notice all that much difference.
Sire recently posted…Friday Funnies #41 Horny Wife
I’m definitely getting my blog optimized using these tips Sire. One thing I’ve always wondered about is how some sites optimize their images such that they can publish large dimension images and yet their sizes are just in Kilobytes. If I publish my images in those dimensions, they always end up with sizes running up into megabytes. Perhaps this Smush.it plugin is the answer. Thanks. :)
James M. recently posted…Best Time to Exercise: An Hour After Eating
Twitter: AussieSire
Let me know how that works for you James.
Sire recently posted…Friday Funnies #41 Horny Wife
Wonderful post.Thanks for detailing all the important aspects for optimizing wordpress blog.I was not aware that there are so many tools out there to optimize your blog.I have been using wordpress from long time back but I was not aware of many things that you have detailed in your article.
WordPress has endless things to optimize. You have provided some useful tips, I would be implementing these guidelines when I will be putting up my wordpress blog soon. I think it’s a bit complicated but there are tools to help simplify the optimization. Good post, thanks for sharing.
Twitter: AussieSire
It may seem complicated Sam but like everything in life, once you start you realize it wasn’t as bad as you had imagined.
Sire recently posted…How Every Blogger Can Finally Monetize Their Blogs
I have never tried the image scaling technique that has been discussed in this post and after reading it i definitely feel the importance of trying out this.I was really not aware of this thing that you have detailed and i was never aware about it.Thanks for the detailed post.
Twitter: AussieSire
Neither did I until I moved the blog to another host.
Sire recently posted…Get Great Sound With A Cambridge Audio 100
Twitter: SNPlanet
Great article with good suggestions.
I also started to pay attention to the speed of loading my website.
In the first place because now a lot of people are connected to the internet via smartphones and tablets, and then with a mobile connection, which is more affected by the slowness of a website
Albert Rox recently posted…Facebook Stock Quote
Twitter: AussieSire
That’s so true Albert, thanks for bringing that up.
Sire recently posted…A Plugin That Increases Click Through Rates
Twitter: RyanMediaWorks
WordPress, or any other blog really, is an emerging tool that more than enough people take advantage of in the modern scheme of online marketing, social networking and content curation. The fact is, there are so many ways to use a blog, that you really better find your niche when doing so; if not, you’ll wind up buried amongst the masses and unsatisfied no matter the quality of your content. For that reason, and trust me – I’m still learning, there are considerations to make.
Patrick Ryan recently posted…3 Simple Questions to Ask Yourself Before Starting Anything in Social Media
Twitter: AussieSire
That is so true Patrick but what exactly has that to do with this post?
Sire recently posted…Review Of WP4FB2.0 Is It As Good As They Say
Twitter: Ryanmediaworks
Just relaying my stream of consciousness after reading this awesome post. Sorry for being a bit random :)
Patrick recently posted…3 Simple Questions to Ask Yourself Before Starting Anything in Social Media
Twitter: AussieSire
No worries Patrick, thanks for coming back and letting me know.
Sire recently posted…Friday Funnies #53 The Smart School Kid & More