<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How we used Amazon Cloudfront as a CDN with Rails assets</title>
	<atom:link href="http://blog.dynamic50.com/2009/11/12/how-we-used-amazon-cloudfront-as-a-cdn-with-rails-assets/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dynamic50.com/2009/11/12/how-we-used-amazon-cloudfront-as-a-cdn-with-rails-assets/</link>
	<description>Ruby on Rails, London - The Blog by Dynamic50</description>
	<lastBuildDate>Sat, 28 Jan 2012 04:38:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: chimbo</title>
		<link>http://blog.dynamic50.com/2009/11/12/how-we-used-amazon-cloudfront-as-a-cdn-with-rails-assets/comment-page-1/#comment-4706</link>
		<dc:creator>chimbo</dc:creator>
		<pubDate>Wed, 08 Jun 2011 05:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dynamic50.com/?p=646#comment-4706</guid>
		<description>I believe theres a solution in this post

http://www.alfajango.com/blog/caching-zipping-and-cdn-for-a-rails-app/

[&quot;https://yourcloudfrontdist0.cloudfront.net&quot;,
  &quot;https://yourcloudfrontdist1.cloudfront.net&quot;,
  &quot;https://yourcloudfrontdist2.cloudfront.net&quot;,
  &quot;https://yourcloudfrontdist3.cloudfront.net&quot; ][source.hash % 4]

Which will use the asset host based on the modulus 4 of the source</description>
		<content:encoded><![CDATA[<p>I believe theres a solution in this post</p>
<p><a href="http://www.alfajango.com/blog/caching-zipping-and-cdn-for-a-rails-app/" rel="nofollow">http://www.alfajango.com/blog/caching-zipping-and-cdn-for-a-rails-app/</a></p>
<p>["https://yourcloudfrontdist0.cloudfront.net",<br />
  "https://yourcloudfrontdist1.cloudfront.net",<br />
  "https://yourcloudfrontdist2.cloudfront.net",<br />
  "https://yourcloudfrontdist3.cloudfront.net" ][source.hash % 4]</p>
<p>Which will use the asset host based on the modulus 4 of the source</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.dynamic50.com/2009/11/12/how-we-used-amazon-cloudfront-as-a-cdn-with-rails-assets/comment-page-1/#comment-2303</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 02 Nov 2010 14:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dynamic50.com/?p=646#comment-2303</guid>
		<description>Hi Paul,
Thanks for your comment
It&#039;s been a while since I tried this! Could you suggest a fix for this?</description>
		<content:encoded><![CDATA[<p>Hi Paul,<br />
Thanks for your comment<br />
It&#8217;s been a while since I tried this! Could you suggest a fix for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Hepworth</title>
		<link>http://blog.dynamic50.com/2009/11/12/how-we-used-amazon-cloudfront-as-a-cdn-with-rails-assets/comment-page-1/#comment-1933</link>
		<dc:creator>Paul Hepworth</dc:creator>
		<pubDate>Sat, 16 Oct 2010 06:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dynamic50.com/?p=646#comment-1933</guid>
		<description>Thanks for the post.... there is one thing thats a bit strange: I tried to do what you were doing and your asset_host code has a bug.

When using the code that you have above, the same image/asset is served from two different servers and the browser has to download them a second time without hitting its cache.</description>
		<content:encoded><![CDATA[<p>Thanks for the post&#8230;. there is one thing thats a bit strange: I tried to do what you were doing and your asset_host code has a bug.</p>
<p>When using the code that you have above, the same image/asset is served from two different servers and the browser has to download them a second time without hitting its cache.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

