<?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, Python, and Ruby</description>
	<lastBuildDate>Fri, 29 Jan 2010 18:13:52 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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&#8217;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&#8217;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, &#8220;New name&#8221;) it will update your Interpolation for the attachment. It will not however update the file name on the server so you&#8217;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 &#8220;change name&#8221; does the trick (renaming a file is also the only way to be sure that browser don&#8217;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&#8217;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>
