<?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 to compress css &amp; javascript: An alternative to mod_deflate or mod_gzip</title>
	<atom:link href="http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/</link>
	<description>On Linux, Web Development, Joomla and Magento commerce</description>
	<lastBuildDate>Mon, 05 Jul 2010 23:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: salubrium</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1500</link>
		<dc:creator>salubrium</dc:creator>
		<pubDate>Mon, 05 Jul 2010 23:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1500</guid>
		<description>Check out the mod_rewrite &lt;a href=&quot;http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/&quot; rel=&quot;nofollow&quot;&gt;Cheat Sheet here&lt;/a&gt;

You will probably use something like (I haven&#039;t tested and my regex&#039;s aren&#039;t that good, so you have to check it out)


RewriteCond %{REQUEST_URI}% !(^*.has_gender=.*)$

How to check? Trial and error.. maybe put a 301 redirect to a simple html page if the condition isn&#039;t met until you have finished testing.</description>
		<content:encoded><![CDATA[<p>Check out the mod_rewrite <a href="http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/" rel="nofollow">Cheat Sheet here</a></p>
<p>You will probably use something like (I haven&#8217;t tested and my regex&#8217;s aren&#8217;t that good, so you have to check it out)</p>
<p>RewriteCond %{REQUEST_URI}% !(^*.has_gender=.*)$</p>
<p>How to check? Trial and error.. maybe put a 301 redirect to a simple html page if the condition isn&#8217;t met until you have finished testing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mklee</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1499</link>
		<dc:creator>mklee</dc:creator>
		<pubDate>Mon, 05 Jul 2010 13:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1499</guid>
		<description>Helllo Techies,

How to conditionally disable the mod_deflate based on the query string (EX: has_gender=) and how to check whether it works or not ?</description>
		<content:encoded><![CDATA[<p>Helllo Techies,</p>
<p>How to conditionally disable the mod_deflate based on the query string (EX: has_gender=) and how to check whether it works or not ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PCM</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1404</link>
		<dc:creator>PCM</dc:creator>
		<pubDate>Tue, 29 Dec 2009 23:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1404</guid>
		<description>I tried to use the above technique and it works perfectly well, but one major problem for my pages. I am using SSIs on each page. When I make .gz file and uplaod it, then the server does not load the SSI. Please suggest me how to include SSI in .gz files.</description>
		<content:encoded><![CDATA[<p>I tried to use the above technique and it works perfectly well, but one major problem for my pages. I am using SSIs on each page. When I make .gz file and uplaod it, then the server does not load the SSI. Please suggest me how to include SSI in .gz files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Compressing JavaScript (And Other Types) Using .htaccess - QuestionBin - Intelligent Answers for Smart Questions::Blog comment</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1391</link>
		<dc:creator>Compressing JavaScript (And Other Types) Using .htaccess - QuestionBin - Intelligent Answers for Smart Questions::Blog comment</dc:creator>
		<pubDate>Tue, 08 Dec 2009 20:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1391</guid>
		<description>[...] http://www.webperformancer.com/2009-08-31/configuring-apache-server-gzip-compression/ http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_defla... [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.webperformancer.com/2009-08-31/configuring-apache-server-gzip-compression/" rel="nofollow">http://www.webperformancer.com/2009-08-31/configuring-apache-server-gzip-compression/</a> <a href="http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_defla.." rel="nofollow">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_defla..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: salubrium</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1355</link>
		<dc:creator>salubrium</dc:creator>
		<pubDate>Fri, 18 Sep 2009 00:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1355</guid>
		<description>I haven&#039;t tested it but something like this should ignore the browsers in question.

&lt;code&gt;
RewriteCond %{HTTP_USER_AGENT} !^.*MSIE\ 6.0
RewriteCond %{HTTP_USER_AGENT} !^.*Chrome.*
RewriteCond %{HTTP_USER_AGENT} !^.*Mozilla/4\.0[678].*
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tested it but something like this should ignore the browsers in question.</p>
<p><code><br />
RewriteCond %{HTTP_USER_AGENT} !^.*MSIE\ 6.0<br />
RewriteCond %{HTTP_USER_AGENT} !^.*Chrome.*<br />
RewriteCond %{HTTP_USER_AGENT} !^.*Mozilla/4\.0[678].*<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faraz</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1354</link>
		<dc:creator>faraz</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1354</guid>
		<description>i&#039;m using this code so if the gzip version of the file dosen&#039;t exist apache does it on the fly.
-----------------------------------

 AddType &quot;text/html&quot; .gz
 AddEncoding gzip .gz


 AddType &quot;text/javascript&quot; .gz
 AddEncoding gzip .gz


 AddType &quot;text/css&quot; .gz
 AddEncoding gzip .gz

RewriteEngine on
ReWriteCond %{HTTP:accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.+) $1.gz [QSA,L]

AddOutputFilterByType DEFLATE text/html
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
-----------------------------

how can i exclude these:
Netscape 4.06-4.08
IE6
chrome 2.0

like safari?
RewriteCond %{HTTP_USER_AGENT} !Safari</description>
		<content:encoded><![CDATA[<p>i&#8217;m using this code so if the gzip version of the file dosen&#8217;t exist apache does it on the fly.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p> AddType &#8220;text/html&#8221; .gz<br />
 AddEncoding gzip .gz</p>
<p> AddType &#8220;text/javascript&#8221; .gz<br />
 AddEncoding gzip .gz</p>
<p> AddType &#8220;text/css&#8221; .gz<br />
 AddEncoding gzip .gz</p>
<p>RewriteEngine on<br />
ReWriteCond %{HTTP:accept-encoding} gzip<br />
RewriteCond %{HTTP_USER_AGENT} !Safari<br />
ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$<br />
RewriteCond %{REQUEST_FILENAME}.gz -f<br />
RewriteRule ^(.+) $1.gz [QSA,L]</p>
<p>AddOutputFilterByType DEFLATE text/html<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>how can i exclude these:<br />
Netscape 4.06-4.08<br />
IE6<br />
chrome 2.0</p>
<p>like safari?<br />
RewriteCond %{HTTP_USER_AGENT} !Safari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danreb</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1349</link>
		<dc:creator>danreb</dc:creator>
		<pubDate>Wed, 09 Sep 2009 02:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1349</guid>
		<description>Very useful information, thanks - I tried the alternative method and works like a charm.</description>
		<content:encoded><![CDATA[<p>Very useful information, thanks &#8211; I tried the alternative method and works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: salubrium</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1320</link>
		<dc:creator>salubrium</dc:creator>
		<pubDate>Thu, 30 Jul 2009 23:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1320</guid>
		<description>Download copies of your jquery.js and jdgallery.js. Use a utility called 7zip (if you are on windows) to gzip these files and give them a gz extension. Then upload them to the same directory where your original js files live. Add the details to your .htaccess file and test using the http://www.whatsmyip.org/ compression tool or Yslow extension in Firefox.</description>
		<content:encoded><![CDATA[<p>Download copies of your jquery.js and jdgallery.js. Use a utility called 7zip (if you are on windows) to gzip these files and give them a gz extension. Then upload them to the same directory where your original js files live. Add the details to your .htaccess file and test using the <a href="http://www.whatsmyip.org/" rel="nofollow">http://www.whatsmyip.org/</a> compression tool or Yslow extension in Firefox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cannon</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1319</link>
		<dc:creator>cannon</dc:creator>
		<pubDate>Thu, 30 Jul 2009 17:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1319</guid>
		<description>hello, I am using a simple godaddy economic plan.

and yes, I have no access to my apache server. and shell :(

will this still work?

hope you can guide me on how to implement these one.

hope you reply SAP

I am planning to gzip jquery.js and jdgallery.js coz they are 100kb in size</description>
		<content:encoded><![CDATA[<p>hello, I am using a simple godaddy economic plan.</p>
<p>and yes, I have no access to my apache server. and shell :(</p>
<p>will this still work?</p>
<p>hope you can guide me on how to implement these one.</p>
<p>hope you reply SAP</p>
<p>I am planning to gzip jquery.js and jdgallery.js coz they are 100kb in size</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timm</title>
		<link>http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/comment-page-1/#comment-1318</link>
		<dc:creator>Timm</dc:creator>
		<pubDate>Thu, 30 Jul 2009 10:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.opensourcetutor.com/2009/06/01/how-to-compress-css-javascript-an-alternative-to-mod_deflate-or-mod_gzip/#comment-1318</guid>
		<description>I found comments on &lt;a href=&quot;http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/&quot; rel=&quot;nofollow&quot;&gt;another blog&lt;/a&gt; confirming that several modern browsers don&#039;t support .gz file decompression: Safari, Konqueror and Google Chrome 2.0. With the alternate solution, those users won&#039;t get the benefits of compression.

Another issue is automating this in your deployment cycle (also mentioned in the post above): I&#039;m often tweaking css on my live sites; using this approach I won&#039;t be seeing any changes &lt;b&gt;until&lt;/b&gt; I manually gzip the changed file. Is there any way to automate this?</description>
		<content:encoded><![CDATA[<p>I found comments on <a href="http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/" rel="nofollow">another blog</a> confirming that several modern browsers don&#8217;t support .gz file decompression: Safari, Konqueror and Google Chrome 2.0. With the alternate solution, those users won&#8217;t get the benefits of compression.</p>
<p>Another issue is automating this in your deployment cycle (also mentioned in the post above): I&#8217;m often tweaking css on my live sites; using this approach I won&#8217;t be seeing any changes <b>until</b> I manually gzip the changed file. Is there any way to automate this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
