<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Speed up your Apache/Passenger Rails app in 2min</title>
	<atom:link href="http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/</link>
	<description>A chess-playing machine of the late 18th century, promoted as an automaton but later proved a hoax.</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:13:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Eliot Sykes</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-881</link>
		<dc:creator><![CDATA[Eliot Sykes]]></dc:creator>
		<pubDate>Thu, 06 May 2010 09:50:03 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-881</guid>
		<description><![CDATA[Using query strings to manage cached assets is unreliable - some caching proxies ignore query strings. Fingerprinted file names is a better solution and recommended by Google. There&#039;s an AssetFingerprint plugin to help with this which I&#039;m shamelessly plugging:
 

  &lt;a href=&quot;http://blog.eliotsykes.com/2010/05/06/why-rails-asset-caching-is-broken/&quot; rel=&quot;nofollow&quot;&gt;http://blog.eliotsykes.com/2010/05/06/why-rails-a...&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>Using query strings to manage cached assets is unreliable &#8211; some caching proxies ignore query strings. Fingerprinted file names is a better solution and recommended by Google. There&#039;s an AssetFingerprint plugin to help with this which I&#039;m shamelessly plugging:</p>
<p>  <a href="http://blog.eliotsykes.com/2010/05/06/why-rails-asset-caching-is-broken/" rel="nofollow">http://blog.eliotsykes.com/2010/05/06/why-rails-a&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-880</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Wed, 30 Sep 2009 02:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-880</guid>
		<description><![CDATA[I think you&#039;re right Mike, FilesMatch doesn&#039;t match against the query string.
 

 
I&#039;ve been using ERB to render my stylesheets so that they do include time stamps,  I wrote about it here: &lt;a href=&quot;http://deaddeadgood.com/2009/9/28/far-future-expires-headers-for-css-images-in-rails&quot; rel=&quot;nofollow&quot;&gt;http://deaddeadgood.com/2009/9/28/far-future-expi...&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>I think you&#039;re right Mike, FilesMatch doesn&#039;t match against the query string.</p>
<p>I&#039;ve been using ERB to render my stylesheets so that they do include time stamps,  I wrote about it here: <a href="http://deaddeadgood.com/2009/9/28/far-future-expires-headers-for-css-images-in-rails" rel="nofollow">http://deaddeadgood.com/2009/9/28/far-future-expi&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: almost effortless &#187; Passenger with nginx on Mac OS X</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-879</link>
		<dc:creator><![CDATA[almost effortless &#187; Passenger with nginx on Mac OS X]]></dc:creator>
		<pubDate>Wed, 16 Sep 2009 22:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-879</guid>
		<description><![CDATA[[...] two configuartion tweeks are, I believe, the rough equivalent of the technique previously discussed on this blog for [...] ]]></description>
		<content:encoded><![CDATA[<p>[...] two configuartion tweeks are, I believe, the rough equivalent of the technique previously discussed on this blog for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-878</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Tue, 01 Sep 2009 10:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-878</guid>
		<description><![CDATA[Oops, comment editor swallowed my example code--must not like angle brackets. My example just added a backslash before the &#039;?&#039; and &#039;d&#039; in the regexp. ]]></description>
		<content:encoded><![CDATA[<p>Oops, comment editor swallowed my example code&#8211;must not like angle brackets. My example just added a backslash before the &#039;?&#039; and &#039;d&#039; in the regexp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-877</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Tue, 01 Sep 2009 10:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-877</guid>
		<description><![CDATA[If this was possible, I think the &#039;?&#039; and &#039;d&#039; in that regex would need to be escaped as follows:
 

 

 

 
I believe, however, that it will not work. I tried this a number of different ways and it appears that the Apache  directive ignores the &#039;?&#039; and everything that follows. Otherwise, how could &#039;myimage.jpg?1234567890&#039; possibly match a regexp ending in &quot;$&quot; (which means string ends here)? I did some tests and this is in fact the case--timestamped assets are matched by the original regex and fail to match with any additions after the file extension. ]]></description>
		<content:encoded><![CDATA[<p>If this was possible, I think the &#039;?&#039; and &#039;d&#039; in that regex would need to be escaped as follows:</p>
<p>I believe, however, that it will not work. I tried this a number of different ways and it appears that the Apache  directive ignores the &#039;?&#039; and everything that follows. Otherwise, how could &#039;myimage.jpg?1234567890&#039; possibly match a regexp ending in &quot;$&quot; (which means string ends here)? I did some tests and this is in fact the case&#8211;timestamped assets are matched by the original regex and fail to match with any additions after the file extension.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-876</link>
		<dc:creator><![CDATA[Erik]]></dc:creator>
		<pubDate>Sun, 12 Jul 2009 04:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-876</guid>
		<description><![CDATA[After trying a few variations I found I needed to add
 

 
ExpiresActive on
 

 
to get the Expires headers working. Though I still cannot get the regexp for the timestamps to work. I have tried a few variations that work in Perl/Ruby but I get no results in Apache.
 

 
Anyone have a working example that handles timestamps?
 

 
Regards
 

 
Erik ]]></description>
		<content:encoded><![CDATA[<p>After trying a few variations I found I needed to add</p>
<p>ExpiresActive on</p>
<p>to get the Expires headers working. Though I still cannot get the regexp for the timestamps to work. I have tried a few variations that work in Perl/Ruby but I get no results in Apache.</p>
<p>Anyone have a working example that handles timestamps?</p>
<p>Regards</p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-875</link>
		<dc:creator><![CDATA[Brad]]></dc:creator>
		<pubDate>Tue, 23 Jun 2009 13:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-875</guid>
		<description><![CDATA[Good tip, don&#039;t forget to mention you need to enable mod_deflate also: a2enmod deflate in order for the gzipping to work.
 

 
Also, the a2enmod scripts are debian specific i believe?  other [lame] distros might need to manually add the module.
 

 
And, couldn&#039;t get josh&#039;s code to work, kept saying my css files didn&#039;t have expires headers ]]></description>
		<content:encoded><![CDATA[<p>Good tip, don&#039;t forget to mention you need to enable mod_deflate also: a2enmod deflate in order for the gzipping to work.</p>
<p>Also, the a2enmod scripts are debian specific i believe?  other [lame] distros might need to manually add the module.</p>
<p>And, couldn&#039;t get josh&#039;s code to work, kept saying my css files didn&#039;t have expires headers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-874</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Thu, 18 Jun 2009 21:59:59 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-874</guid>
		<description><![CDATA[Thanks, Josh! I&#039;ll give that a try. Seems like it would work well to me. ]]></description>
		<content:encoded><![CDATA[<p>Thanks, Josh! I&#039;ll give that a try. Seems like it would work well to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh N. Abbott</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-873</link>
		<dc:creator><![CDATA[Josh N. Abbott]]></dc:creator>
		<pubDate>Tue, 16 Jun 2009 20:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-873</guid>
		<description><![CDATA[This would do the trick wouldn&#8217;t it:
 

 
# gzip html, css and js
 
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript
 
 
 
# far future expires headers
 
&lt;FilesMatch &quot;.(ico&#124;pdf&#124;flv&#124;jpg&#124;jpeg&#124;png&#124;gif&#124;js&#124;css&#124;swf)?d{10}$&quot;&gt;
 
  ExpiresDefault &quot;access plus 10 years&quot;
 
&lt;/FilesMatch&gt; ]]></description>
		<content:encoded><![CDATA[<p>This would do the trick wouldn&rsquo;t it:</p>
<p># gzip html, css and js</p>
<p>AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript</p>
<p># far future expires headers</p>
<p>&lt;FilesMatch &quot;.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)?d{10}$&quot;&gt;</p>
<p>  ExpiresDefault &quot;access plus 10 years&quot;</p>
<p>&lt;/FilesMatch&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2009/06/11/speed-up-your-apachepassenger-rails-app-in-2min/#comment-872</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Fri, 12 Jun 2009 00:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=1402#comment-872</guid>
		<description><![CDATA[Yeah, I guess not. Any chance of getting some pointers on how to fix this? ]]></description>
		<content:encoded><![CDATA[<p>Yeah, I guess not. Any chance of getting some pointers on how to fix this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

