<?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: Apache HTTP encoding negotiation notes</title>
	<atom:link href="http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/</link>
	<description>Steve Clay on programming, music, public policy and other junk</description>
	<lastBuildDate>Tue, 17 Apr 2012 07:00:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Gilles</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-102214</link>
		<dc:creator>Gilles</dc:creator>
		<pubDate>Tue, 28 Jul 2009 09:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-102214</guid>
		<description>Hi Steve,

You said in project goal #3:
&quot;Minify should work towards maintaining builds of pre-encoded files and letting Apache serve them.&quot;

Will this work?
- Dynamic CMS which knows which JS files to include (e.g. thesame as &quot;/?f=...&quot;
- Get the last modified date
- Create an MD5 hash of these files (to get the filename)
- Append the lastmod date so you get -12345.js
- Use Minify to create this file
- Use typemap so apache serves the correct file to the browser.

All i am wondering is how Apache will handle the caching, since you no longer go through the PHP interperter. Any ideas / tests on this one?</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>You said in project goal #3:<br />
&#8220;Minify should work towards maintaining builds of pre-encoded files and letting Apache serve them.&#8221;</p>
<p>Will this work?<br />
- Dynamic CMS which knows which JS files to include (e.g. thesame as &#8220;/?f=&#8230;&#8221;<br />
- Get the last modified date<br />
- Create an MD5 hash of these files (to get the filename)<br />
- Append the lastmod date so you get -12345.js<br />
- Use Minify to create this file<br />
- Use typemap so apache serves the correct file to the browser.</p>
<p>All i am wondering is how Apache will handle the caching, since you no longer go through the PHP interperter. Any ideas / tests on this one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-102193</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Tue, 21 Jul 2009 13:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-102193</guid>
		<description>It would be useful if you can configure Apache that it generates the different encodings just once when there do not exist the different file versions or the base file changed. So you don&#039;t have to manually compress them each time you upload/change a file.</description>
		<content:encoded><![CDATA[<p>It would be useful if you can configure Apache that it generates the different encodings just once when there do not exist the different file versions or the base file changed. So you don&#8217;t have to manually compress them each time you upload/change a file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-97705</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 10 Jun 2008 20:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-97705</guid>
		<description>@Peter: Thanks. The RewriteRule I gave is correct. It purposefully redirects to the un-encoded resource for the targeted browsers. So:

IE5: GET file.js.var =&gt; file.js

Only the non-buggy browser requests get handled by mod_negotiation.

BTW, I&#039;ve recently rewritten Minify::serve to get about 3x the performance. It&#039;s now faster than mod_deflate!</description>
		<content:encoded><![CDATA[<p>@Peter: Thanks. The RewriteRule I gave is correct. It purposefully redirects to the un-encoded resource for the targeted browsers. So:</p>
<p>IE5: GET file.js.var => file.js</p>
<p>Only the non-buggy browser requests get handled by mod_negotiation.</p>
<p>BTW, I&#8217;ve recently rewritten Minify::serve to get about 3x the performance. It&#8217;s now faster than mod_deflate!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Bowey</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-97702</link>
		<dc:creator>Peter Bowey</dc:creator>
		<pubDate>Tue, 10 Jun 2008 14:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-97702</guid>
		<description>Update: Mention to your readers that the above .htaccess directive file is to be placed in its respective static resource folder (eg: &lt;b&gt;/css&lt;/b&gt; or &lt;b&gt;/javascript&lt;/b&gt;) and not the &lt;b&gt;root folder&lt;/b&gt;. Also you could explain the value of the &lt;code&gt;RewriteBase /tests/encoding-negotiation&lt;/code&gt;. This is the /path to the static resource (css or javascript).

On my own live website, I have implemented a &lt;b&gt;HTTP encoding negotiation&lt;/b&gt; method with &lt;b&gt;type-map&lt;/b&gt; resources (javascript and css) and it works very well. I have also tried &#039;minify&#039; code and benchmarked the &#039;real-time&#039; results as marginal compared to the &lt;b&gt;“Apache HTTP encoding negotiation notes”&lt;/b&gt; pre-compression technique.

Thanks for sharing! We learn from each other, your project and notes have helped me heaps!</description>
		<content:encoded><![CDATA[<p>Update: Mention to your readers that the above .htaccess directive file is to be placed in its respective static resource folder (eg: <b>/css</b> or <b>/javascript</b>) and not the <b>root folder</b>. Also you could explain the value of the <code>RewriteBase /tests/encoding-negotiation</code>. This is the /path to the static resource (css or javascript).</p>
<p>On my own live website, I have implemented a <b>HTTP encoding negotiation</b> method with <b>type-map</b> resources (javascript and css) and it works very well. I have also tried &#8216;minify&#8217; code and benchmarked the &#8216;real-time&#8217; results as marginal compared to the <b>“Apache HTTP encoding negotiation notes”</b> pre-compression technique.</p>
<p>Thanks for sharing! We learn from each other, your project and notes have helped me heaps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Bowey</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-97700</link>
		<dc:creator>Peter Bowey</dc:creator>
		<pubDate>Tue, 10 Jun 2008 14:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-97700</guid>
		<description>Update Correction:

The Apache buggy browser code (last line) needs changing from

(orig) RewriteRule ^(.*)\.var$         $1 [L]
// fixed and tested on both IE6 with SV1 and IE6 without
to     RewriteRule ^(.*)\.css$         $1 [L]
or     RewriteRule ^(.*)\.js$         $1 [L]</description>
		<content:encoded><![CDATA[<p>Update Correction:</p>
<p>The Apache buggy browser code (last line) needs changing from</p>
<p>(orig) RewriteRule ^(.*)\.var$         $1 [L]<br />
// fixed and tested on both IE6 with SV1 and IE6 without<br />
to     RewriteRule ^(.*)\.css$         $1 [L]<br />
or     RewriteRule ^(.*)\.js$         $1 [L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.mrclay.org/2008/05/25/apache-http-encoding-negotiation-notes/comment-page-1/#comment-97338</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 04 Jun 2008 03:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://mrclay.org/?p=200#comment-97338</guid>
		<description>Update: The configuration above can &lt;a href=&quot;/index.php/2008/06/03/pre-encoding-vs-mod_deflate/&quot; rel=&quot;nofollow&quot;&gt;serve larger files 2.5x as fast as using mod_deflate&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Update: The configuration above can <a href="/index.php/2008/06/03/pre-encoding-vs-mod_deflate/">serve larger files 2.5x as fast as using mod_deflate</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

