<?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: Compress JavaScript with Gzip</title>
	<atom:link href="http://tutorialajax.com/compress-javascript-with-gzip.html/feed" rel="self" type="application/rss+xml" />
	<link>http://tutorialajax.com/compress-javascript-with-gzip.html</link>
	<description>Prototype, jQuery and another Ajax tutorials</description>
	<lastBuildDate>Fri, 26 Mar 2010 07:30:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: roshan</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-54</link>
		<dc:creator>roshan</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-54</guid>
		<description>it worked now had made a minor mistake :)</description>
		<content:encoded><![CDATA[<p>it worked now had made a minor mistake <img src='http://tutorialajax.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roshan</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-53</link>
		<dc:creator>roshan</dc:creator>
		<pubDate>Fri, 26 Mar 2010 07:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-53</guid>
		<description>Hi

I tried to do the same for CSS but didn&#039;t work

Do i need to do something else so that it works for CSS as 

well

Thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I tried to do the same for CSS but didn&#8217;t work</p>
<p>Do i need to do something else so that it works for CSS as </p>
<p>well</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: osogtulak</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-52</link>
		<dc:creator>osogtulak</dc:creator>
		<pubDate>Sat, 27 Feb 2010 04:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-52</guid>
		<description>You can compress practically anything i.e. trying with jpg

RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.jgz -f
RewriteRule (.*)\.jpg$ $1\.jpg.jpgz [L]
AddType &quot;image/jpg&quot; .jpg.jpgz
AddEncoding gzip .jpgz</description>
		<content:encoded><![CDATA[<p>You can compress practically anything i.e. trying with jpg</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP:Accept-Encoding} gzip<br />
RewriteCond %{REQUEST_FILENAME}.jgz -f<br />
RewriteRule (.*)\.jpg$ $1\.jpg.jpgz [L]<br />
AddType &#8220;image/jpg&#8221; .jpg.jpgz<br />
AddEncoding gzip .jpgz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ImageBox</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-50</link>
		<dc:creator>ImageBox</dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-50</guid>
		<description>Just upload your javascript files to yourjavascript.com and they will host and gzip your .js files.</description>
		<content:encoded><![CDATA[<p>Just upload your javascript files to yourjavascript.com and they will host and gzip your .js files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-47</link>
		<dc:creator>Clayton</dc:creator>
		<pubDate>Wed, 09 Dec 2009 16:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-47</guid>
		<description>I m newbie with Apache and Javascript, so sorry for my question:

I use windows XP, with Apache 2.2. 

In my HTML I have the following script TAG:



Important: All others javascript are not gzipped.

When I loaded the HTML page (Firefox) the &quot;Error Console&quot;, showed the error &quot;illegal character&quot;.

So, I created a file htaccess.txt and inside it I put the lines:

RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule (.*)\.js$ $1\.js.gz [L]
AddType &quot;text/javascript&quot; .js.gz
AddEncoding gzip .gz

Inside the httpd.conf I add the line &quot;AccessFileName htaccess.txt&quot; (without the quotes)

What is wrong? Why the message &quot;illegal character&quot; ?</description>
		<content:encoded><![CDATA[<p>I m newbie with Apache and Javascript, so sorry for my question:</p>
<p>I use windows XP, with Apache 2.2. </p>
<p>In my HTML I have the following script TAG:</p>
<p>Important: All others javascript are not gzipped.</p>
<p>When I loaded the HTML page (Firefox) the &#8220;Error Console&#8221;, showed the error &#8220;illegal character&#8221;.</p>
<p>So, I created a file htaccess.txt and inside it I put the lines:</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP:Accept-Encoding} gzip<br />
RewriteCond %{REQUEST_FILENAME}.gz -f<br />
RewriteRule (.*)\.js$ $1\.js.gz [L]<br />
AddType &#8220;text/javascript&#8221; .js.gz<br />
AddEncoding gzip .gz</p>
<p>Inside the httpd.conf I add the line &#8220;AccessFileName htaccess.txt&#8221; (without the quotes)</p>
<p>What is wrong? Why the message &#8220;illegal character&#8221; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roald</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-44</link>
		<dc:creator>Roald</dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-44</guid>
		<description>Thanks! Works perfectly for me in Firefox, IE6, 7 &amp; 8!</description>
		<content:encoded><![CDATA[<p>Thanks! Works perfectly for me in Firefox, IE6, 7 &amp; 8!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: theo</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-43</link>
		<dc:creator>theo</dc:creator>
		<pubDate>Sat, 26 Sep 2009 12:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-43</guid>
		<description>Do i have to put something like &quot;&quot; and &quot;&quot; befor and after the code in the htaccess file ? thank you</description>
		<content:encoded><![CDATA[<p>Do i have to put something like &#8220;&#8221; and &#8220;&#8221; befor and after the code in the htaccess file ? thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-42</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 05 Sep 2009 00:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-42</guid>
		<description>Ok, after some more work, I realized that I in the course of troubleshooting I had it working partially, but then broke it.  Now, I&#039;ve got it back to where I started, which is working properly IF the .js file doesn&#039;t exist.  If it exists, then it uses the bigger file.  Do I need to specify the .js.jgz file in my html?</description>
		<content:encoded><![CDATA[<p>Ok, after some more work, I realized that I in the course of troubleshooting I had it working partially, but then broke it.  Now, I&#8217;ve got it back to where I started, which is working properly IF the .js file doesn&#8217;t exist.  If it exists, then it uses the bigger file.  Do I need to specify the .js.jgz file in my html?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-41</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 05 Sep 2009 00:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-41</guid>
		<description>Scratch that, actually, I can&#039;t get it to work at all.  It&#039;s just not detecting the .jgz at all.  I&#039;m suspecting that it&#039;s because the apache is not working with the RewriteCond Http-accept Encoding rule.</description>
		<content:encoded><![CDATA[<p>Scratch that, actually, I can&#8217;t get it to work at all.  It&#8217;s just not detecting the .jgz at all.  I&#8217;m suspecting that it&#8217;s because the apache is not working with the RewriteCond Http-accept Encoding rule.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://tutorialajax.com/compress-javascript-with-gzip.html/comment-page-1#comment-40</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 05 Sep 2009 00:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialajax.com/?p=25#comment-40</guid>
		<description>I&#039;m having some trouble with implementing your post.  I&#039;m on 1and1 and I&#039;ve got mod-rewrite working for other stuff, but I&#039;m not sure if the HTTP-Accept Encoding is working properly on their apache server.  If I remove the .js file, it seems to pick up the .jgz file, but if it is there, then it uses it and transfers the bigger file.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having some trouble with implementing your post.  I&#8217;m on 1and1 and I&#8217;ve got mod-rewrite working for other stuff, but I&#8217;m not sure if the HTTP-Accept Encoding is working properly on their apache server.  If I remove the .js file, it seems to pick up the .jgz file, but if it is there, then it uses it and transfers the bigger file.  Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

