<?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: Using Amazon&#8217;s CloudFront with Rails &amp; Paperclip</title>
	<atom:link href="http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/</link>
	<description>One can never have enough scripting languages: Notes on Perl, PHP, and Ruby</description>
	<lastBuildDate>Wed, 18 Aug 2010 19:38:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Barry</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-181</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-181</guid>
		<description>Mike, I find just using the CDN is fast enough, and I want people&#039;s browsers to cache all of my assets.  Your approach means they might get a different URL for an asset every time they visit one of my pages, so that I end up paying more for outgoing bandwidth.</description>
		<content:encoded><![CDATA[<p>Mike, I find just using the CDN is fast enough, and I want people's browsers to cache all of my assets.  Your approach means they might get a different URL for an asset every time they visit one of my pages, so that I end up paying more for outgoing bandwidth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Larkin</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-180</link>
		<dc:creator>Mike Larkin</dc:creator>
		<pubDate>Tue, 13 Apr 2010 19:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-180</guid>
		<description>Excellent write up!  One thing I&#039;d suggest would be to use multiple CNAMEs to serve assets -- most browsers limit simultaneous connections to a subdomain to a max of 2, so if you use something like cnd0, cdn1, cdn2, cdn3, you can speed things up a bit:

:s3_host_alias =&gt; &quot;cdn#{rand(4)}.pixellent.com&quot;</description>
		<content:encoded><![CDATA[<p>Excellent write up!  One thing I'd suggest would be to use multiple CNAMEs to serve assets -- most browsers limit simultaneous connections to a subdomain to a max of 2, so if you use something like cnd0, cdn1, cdn2, cdn3, you can speed things up a bit:</p>
<p>:s3_host_alias =&gt; "cdn#{rand(4)}.pixellent.com"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-111</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Fri, 29 Jan 2010 18:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-111</guid>
		<description>Hello, Cameron.  It doesn&#039;t work that way.  The interpolation is using attachment.instance_read(:updated_at).to_i so it only changes if the file changes, not if anything else on the model changes.  The problem you describe only happens if you are relying on Model.updated_at for the interpolation.</description>
		<content:encoded><![CDATA[<p>Hello, Cameron.  It doesn't work that way.  The interpolation is using attachment.instance_read(:updated_at).to_i so it only changes if the file changes, not if anything else on the model changes.  The problem you describe only happens if you are relying on Model.updated_at for the interpolation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron Westland</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-110</link>
		<dc:creator>Cameron Westland</dc:creator>
		<pubDate>Fri, 29 Jan 2010 16:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-110</guid>
		<description>Be careful with the updated_at interpolator if you&#039;re going to have any other attributes on the model. For instance. If you have :image and :name in the database. If you do Model#update_attribute(:name, &quot;New name&quot;) it will update your Interpolation for the attachment. It will not however update the file name on the server so you&#039;re path and the actual file will be out of sync.</description>
		<content:encoded><![CDATA[<p>Be careful with the updated_at interpolator if you're going to have any other attributes on the model. For instance. If you have :image and :name in the database. If you do Model#update_attribute(:name, "New name") it will update your Interpolation for the attachment. It will not however update the file name on the server so you're path and the actual file will be out of sync.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco B</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-60</link>
		<dc:creator>Marco B</dc:creator>
		<pubDate>Thu, 29 Oct 2009 08:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-60</guid>
		<description>Thanks for the post.

I know CloudFront has a 24hours delay to refresh its content if you update a file of yours into S3, so the &quot;change name&quot; does the trick (renaming a file is also the only way to be sure that browser don&#039;t use a locally cached version).

Nice way to implement this into paperclip, thanks again :)</description>
		<content:encoded><![CDATA[<p>Thanks for the post.</p>
<p>I know CloudFront has a 24hours delay to refresh its content if you update a file of yours into S3, so the "change name" does the trick (renaming a file is also the only way to be sure that browser don't use a locally cached version).</p>
<p>Nice way to implement this into paperclip, thanks again :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-30</link>
		<dc:creator>Barry</dc:creator>
		<pubDate>Sun, 20 Sep 2009 01:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-30</guid>
		<description>I&#039;m glad to hear it helped!</description>
		<content:encoded><![CDATA[<p>I'm glad to hear it helped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Champion</title>
		<link>http://blog.tristanmedia.com/2009/09/using-amazons-cloudfront-with-rails-and-paperclip/comment-page-1/#comment-29</link>
		<dc:creator>Mike Champion</dc:creator>
		<pubDate>Sun, 20 Sep 2009 01:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tristanmedia.com/?p=56#comment-29</guid>
		<description>Thanks for this post, it was very helpful in setting up our app with Cloudfront! Exactly what I was looking for.</description>
		<content:encoded><![CDATA[<p>Thanks for this post, it was very helpful in setting up our app with Cloudfront! Exactly what I was looking for.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
