A few days ago Frederick Townes, author of the W3 Total Cache for WordPress has released an update to this wonderful plugin, and yes, it now fully supports Amazon S3 and CloudFront as the Content Delivery Network! This is a major one for me as I manually upload most of the static assets to my CloudFront account which may take quite a lot of time. The W3 Total Cache plugin does that for you in seconds! Post attachments, images, javascript, css.. All those could go to CloudFront in just 4 clicks. Frederick also mentioned that the upcoming update will also be surprising, which keeps me wondering.
I also tried out the other options for page and database caching. A few tests showed up that memcache is faster than APC, so that’s where I stopped at database caching. Page caching was switched to enhanced, which I believe is a new option. The site performance graph at Google Webmaster Tools shows pretty good performance for Novermber and December (very close to 1.5 seconds) although the overall average is still up at 3.5 seconds, which in terms of Google is slower than 59% of sites. This is probably caused by the force majeures in September and October. Page load time peaked at over 7 seconds there.
One more funny fact about Google’s Site performance and Page Speed tools is the “Minimize DNS lookups” section, which most of the time shows up a single entry:
The domains of the following URLs only serve one resource each. If possible, avoid the extra DNS lookups by serving these resources from existing domains: http://www.google-analytics.com/ga.js
Interesting. Perhaps I should copy that javascript file and serve it from my CDN, I wonder if that will work. Oh and then I’ll be missing all the nifty updates to Google Analytics, like the most recent one called Asynchronous Tracking – very neat by the way!
[…] This post was mentioned on Twitter by Francesco Mugnai, kovshenin. kovshenin said: W3 Total Cache with Amazon S3 and CloudFront https://konstantin.blog/1669 #wordpress #aws […]
Social comments and analytics for this post…
This post was mentioned on Twitter by kovshenin: W3 Total Cache with Amazon S3 and CloudFront https://konstantin.blog/1669 #wordpress #aws…
When I have W3 page caching on, Twitter Friendly Links reroutes my link the first time, but if I do it twice, it gives 404 error.
Any idea how to configure either plugin so that that doesn't happen (please email me direct if you do).
Kind regards, Steven Smith
Hi Smith, turn on .htaccess caching in Twitter Friendly Links, that should solve your 404 problem.
[…] usar Amazon S3 y CloudFront: W3 Total Cache, Paul Stamatiou, más plugins con soporte CloudFront, Kovshenin, … Etiquetas: almacenamiento, s3, […]
Thanks for the update. It's nice to hear that it takes 1, 2, 3, only 4 clicks to make it happen. I'm currently updating an AkronOhioMoms.com blog and this will really help make it fly as my flagship to point clients to.
THANKS!
Quick note on the ga.js issue reported in GWT – this is simply a reporting issue. Google does in fact gzip that file, but not when the user agent is Googlebot (which is used to generate this report). I'm sure they intend to fix this issue as it confuses a lot of people.