<?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, 16 Jan 2012 19:55:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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-1541</link>
		<dc:creator>salubrium</dc:creator>
		<pubDate>Tue, 09 Nov 2010 06:09:32 +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-1541</guid>
		<description>You can read the other comments about why we exclude certain browsers. We ignore them because the don&#039;t unpack the gz extension in the normal / expected way like other browsers.</description>
		<content:encoded><![CDATA[<p>You can read the other comments about why we exclude certain browsers. We ignore them because the don&#8217;t unpack the gz extension in the normal / expected way like other browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Karun</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-1540</link>
		<dc:creator>Raj Karun</dc:creator>
		<pubDate>Tue, 09 Nov 2010 05:50:04 +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-1540</guid>
		<description>Hi I read several blogs and articles and this one actually solved my problem.
There were actually 40 .js files in my web directory and used 7zip and the htaccess code its working great. I had a doubt while going through the code. It is very clearly explained in the htaccess code that we first check if the browser accepts Gzip file and then we send the Gzip file, in that case why should we specifically exclude browsers. Sorry if this is a stupid/blunt question.

Raj</description>
		<content:encoded><![CDATA[<p>Hi I read several blogs and articles and this one actually solved my problem.<br />
There were actually 40 .js files in my web directory and used 7zip and the htaccess code its working great. I had a doubt while going through the code. It is very clearly explained in the htaccess code that we first check if the browser accepts Gzip file and then we send the Gzip file, in that case why should we specifically exclude browsers. Sorry if this is a stupid/blunt question.</p>
<p>Raj</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-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>
</channel>
</rss>

