Testing a CDN for externally hosted images to improve page load times

38 posts
  • 4 Years of Membership
  • Australia
  • Collector Level 1
  • Envato Team
+1 more
stevehodgkiss
Envato team
says

In order to improve page load time for users around the world we’re going to try serving externally hosted images (used in item descriptions, forum posts and other user content areas) through a Content Delivery Network called Cloudfront.

Before rendering the page we re-write the image tags in your content to serve them through an image proxy service with Cloudfront on top. The image proxy gets the image from the external server and passes it along to Cloudfront, which will cache the image based on the cache headers the external server responded with.

The first step is a trial to a small percentage of users for short periods of time over the next couple of days so that we can measure load times and monitor for errors. If you notice any strange behaviour that may be related to this please let us know in this thread.

During this trial, any changes that you make to your images may not be shown to all users unless you also change the URL of the image. Everything will go back to normal at the end of the trial, and we’ll document this in detail if it becomes a permanent feature.

385 posts
  • Trendsetter
  • Weekly Top Seller
  • Featured Author
  • Author Level 6
+5 more
codenegar
says

Some authors use inline images to get stats and count of page views, this will break their stat.

38 posts
  • 4 Years of Membership
  • Australia
  • Collector Level 1
  • Envato Team
+1 more
stevehodgkiss
Envato team
says
Some authors use inline images to get stats and count of page views, this will break their stat.

The image counters we’ve looked at so far all respond with no-cache in the Cache-Control header. This tells Cloudfront not to cache the image and always request it from the origin server, so page view counting should still work.

1607 posts
  • Exclusive Author
  • Author Level 6
  • Bundle Boss
  • Featured Author
+7 more
AndrVlad
says

Yes, please keep image counters. Just in case I’m using http://ga.webdigi.co.uk/

Best Regards, Andrey

22 posts
  • Australia
  • Collector Level 1
  • 5 Years of Membership
compactcode
says

Nice, been keen on this for a while :D

38 posts
  • 4 Years of Membership
  • Australia
  • Collector Level 1
  • Envato Team
+1 more
stevehodgkiss
Envato team
says

We’ve temporarily turned it on for everyone to gather more data, and the results are looking good so far! Please let us know if you spot any issues related to this feature :)

385 posts
  • Trendsetter
  • Weekly Top Seller
  • Featured Author
  • Author Level 6
+5 more
codenegar
says

Please check this page http://codecanyon.net/item/android-live-tv/5199544
They have added a flag counter, and it has been cached.

38 posts
  • 4 Years of Membership
  • Australia
  • Collector Level 1
  • Envato Team
+1 more
stevehodgkiss
Envato team
says
Please check this page http://codecanyon.net/item/android-live-tv/5199544 They have added a flag counter, and it has been cached.

It also appears cached when you view it without the Cloudfront image proxy links – http://codecanyon.net/item/android-live-tv/5199544?image_proxy=nothanks.

5441 posts
  • Author Level 11
  • Moderator
  • Winner
  • 6 Years of Membership
+20 more
dtbaker
Moderator
says

I’ll probably get shot for saying this, but rewriting to cloudfront will overcome one of the biggest hurdles for getting marketplace wide ssl…. * hides * ... authors wont have to get their own ssl hosting for preview images/forum images/etc..

Hey devs, could you please consider adding the original file name at the end of the cloudfront rewritten url (eg: ....29823472/original.jpg) ? I’ve always tried to name my item images as descriptive as possible for what tiny little seo benefit it may have.

Cheers :)

8176 posts
  • Author Level 6
  • Trendsetter
  • Weekly Top Seller
  • Community Superstar
+8 more
doru
says

I’m using Amazon S3 to host promo images and then insert them in the item preview text.

Did this new change means that once the image is cached to cloudfront it will never be accessed on amazon servers each time the page is viewed?

by
by
by
by
by
by