<?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"
	>
<channel>
	<title>Comments on: Compressing JavaScript and CSS</title>
	<atom:link href="http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/</link>
	<description>The weblog of Joshua Eichorn, AJAX, PHP and Open Source</description>
	<pubDate>Mon, 01 Dec 2008 19:00:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Jason S</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-582274</link>
		<dc:creator>Jason S</dc:creator>
		<pubDate>Mon, 20 Oct 2008 08:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-582274</guid>
		<description>If you use a shared host as I do, you may have a hard time getting this version to work. I spent days on it, before I worked out another method that works. 

If your host has the php and the zlib extension you can compress your css and javascript files using an alternate method explained below.

http://thewebdevelopmentblog.com/2008/10/tip-speed-up-your-websites-using-gzip-and-merging-files/

It can also merge your files and cache them which will make your site load much faster again!

Hope this helps!</description>
		<content:encoded><![CDATA[<p>If you use a shared host as I do, you may have a hard time getting this version to work. I spent days on it, before I worked out another method that works. </p>
<p>If your host has the php and the zlib extension you can compress your css and javascript files using an alternate method explained below.</p>
<p><a href="http://thewebdevelopmentblog.com/2008/10/tip-speed-up-your-websites-using-gzip-and-merging-files/" rel="nofollow">http://thewebdevelopmentblog.com/2008/10/tip-speed-up-your-websites-using-gzip-and-merging-files/</a></p>
<p>It can also merge your files and cache them which will make your site load much faster again!</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blogging developer</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-362561</link>
		<dc:creator>blogging developer</dc:creator>
		<pubDate>Tue, 29 Jan 2008 17:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-362561</guid>
		<description>Another free online tool for compressing javascript is &lt;a&gt;http://www.compressjavascript.com&lt;/a&gt;

cheers,
blogging developer
&lt;a href="http://www.bloggingdeveloper.com" title="Blogging Developer - Tips &#38; Tricks &#38; Tutorials on Web Development(ASP.NET/JavaScript/C#) &#124; Search Engine Optimization(SEO) &#124; Online Marketing" rel="nofollow"&gt;http://www.bloggingdeveloper.com&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Another free online tool for compressing javascript is <a>http://www.compressjavascript.com</a></p>
<p>cheers,<br />
blogging developer<br />
<a href="http://www.bloggingdeveloper.com" title="Blogging Developer - Tips &amp; Tricks &amp; Tutorials on Web Development(ASP.NET/JavaScript/C#) | Search Engine Optimization(SEO) | Online Marketing" rel="nofollow">http://www.bloggingdeveloper.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250139</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Thu, 30 Aug 2007 17:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250139</guid>
		<description>Man does mod_rewrite have bugs in it or what. I've been looking on the web and it appears to have loads. That line:
RewriteCond %{HTTP_USER_AGENT} “MSIE 7&#124;Firefox”

...it just goes ahead and rewrites anyway regrdless of whether it matches the user agent string or not. I've verified this with multiple browsers and also Rex Swain HTTP viewer (http://www.rexswain.com/httpview.html). I've tried it in every configuration possible - it just wants to do it's own thing.</description>
		<content:encoded><![CDATA[<p>Man does mod_rewrite have bugs in it or what. I&#8217;ve been looking on the web and it appears to have loads. That line:<br />
RewriteCond %{HTTP_USER_AGENT} “MSIE 7|Firefox”</p>
<p>&#8230;it just goes ahead and rewrites anyway regrdless of whether it matches the user agent string or not. I&#8217;ve verified this with multiple browsers and also Rex Swain HTTP viewer (http://www.rexswain.com/httpview.html). I&#8217;ve tried it in every configuration possible - it just wants to do it&#8217;s own thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250113</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Thu, 30 Aug 2007 16:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250113</guid>
		<description>(with FilesMatch tags around the code a la post 15)</description>
		<content:encoded><![CDATA[<p>(with FilesMatch tags around the code a la post 15)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250111</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Thu, 30 Aug 2007 16:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-250111</guid>
		<description>I use...

	
	ForceType text/javascript 
	Header set Content-Encoding: gzip


	RewriteCond %{HTTP_USER_AGENT} "MSIE 7&#124;Firefox" 
	RewriteCond %{REQUEST_FILENAME}.gz -f  
	RewriteCond %{HTTP:Accept-Encoding} gzip  
	RewriteRule (.*)\.js$ $1.js.gz [QSA,L] 
	ForceType text/javascript 


... but it only works if the original javascript file DOESNT exist. If it does, it uses that instead. This happens on both ie7 and firefox. I don't know why this happens but it makes it impossible to use becuase browsers other than ie7 and firefox dont support it or have bugs, and ie7 and ifrefox just use the regular file anyway. Maybe there's something wrong with the code...</description>
		<content:encoded><![CDATA[<p>I use&#8230;</p>
<p>	ForceType text/javascript<br />
	Header set Content-Encoding: gzip</p>
<p>	RewriteCond %{HTTP_USER_AGENT} &#8220;MSIE 7|Firefox&#8221;<br />
	RewriteCond %{REQUEST_FILENAME}.gz -f<br />
	RewriteCond %{HTTP:Accept-Encoding} gzip<br />
	RewriteRule (.*)\.js$ $1.js.gz [QSA,L]<br />
	ForceType text/javascript </p>
<p>&#8230; but it only works if the original javascript file DOESNT exist. If it does, it uses that instead. This happens on both ie7 and firefox. I don&#8217;t know why this happens but it makes it impossible to use becuase browsers other than ie7 and firefox dont support it or have bugs, and ie7 and ifrefox just use the regular file anyway. Maybe there&#8217;s something wrong with the code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inside Java2Script &#187; Blog Archive &#187; Compressing and Deploying JavaScript</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-206569</link>
		<dc:creator>Inside Java2Script &#187; Blog Archive &#187; Compressing and Deploying JavaScript</dc:creator>
		<pubDate>Tue, 05 Jun 2007 15:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-206569</guid>
		<description>[...] For more information about this gzip-encoding configuration, please google &#8220;IE gzip javascript encoding&#8221; or read Joshua Eichorn&#8217;s blog article &#8220;Compressing JavaScript and CSS&#8221;. [...]</description>
		<content:encoded><![CDATA[<p>[...] For more information about this gzip-encoding configuration, please google &#8220;IE gzip javascript encoding&#8221; or read Joshua Eichorn&#8217;s blog article &#8220;Compressing JavaScript and CSS&#8221;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-180007</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Mon, 09 Apr 2007 20:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-180007</guid>
		<description>Ugh! The tags were eaten by your script. My last post should read:

[FilesMatch "\.js.gz$"]
	ForceType text/javascript
	Header set Content-Encoding: gzip
[/FilesMatch]
[FilesMatch "\.js$"]
	RewriteEngine On
	RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
	RewriteCond %{HTTP_ACCEPT} &#62;gzip
	RewriteCond %{REQUEST_FILENAME}.gz -f
	RewriteRule ^(.+).js$ $1.js.gz [QSA,L]
	ForceType text/javascript
[/FilesMatch]

Change [ &#38; ] to angle braces.</description>
		<content:encoded><![CDATA[<p>Ugh! The tags were eaten by your script. My last post should read:</p>
<p>[FilesMatch "\.js.gz$"]<br />
	ForceType text/javascript<br />
	Header set Content-Encoding: gzip<br />
[/FilesMatch]<br />
[FilesMatch "\.js$"]<br />
	RewriteEngine On<br />
	RewriteCond %{HTTP_USER_AGENT} !&#8221;.*Safari.*&#8221;<br />
	RewriteCond %{HTTP_ACCEPT} &gt;gzip<br />
	RewriteCond %{REQUEST_FILENAME}.gz -f<br />
	RewriteRule ^(.+).js$ $1.js.gz [QSA,L]<br />
	ForceType text/javascript<br />
[/FilesMatch]</p>
<p>Change [ &amp; ] to angle braces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-180006</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Mon, 09 Apr 2007 20:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-180006</guid>
		<description>The problem of setting the Content-Encoding piqued my curiosity so looked around a bit and found this page:
http://zuble.blogspot.com/2007/02/compressed-js-and-modrewrite.html

I made a couple of changes to his version:


	ForceType text/javascript
	Header set Content-Encoding: gzip


	RewriteEngine On
	RewriteCond %{HTTP_USER_AGENT} !".*Safari.*"
	RewriteCond %{HTTP_ACCEPT} &#62;gzip
	RewriteCond %{REQUEST_FILENAME}.gz -f
	RewriteRule ^(.+).js$ $1.js.gz [QSA,L]
	ForceType text/javascript


Works for me.</description>
		<content:encoded><![CDATA[<p>The problem of setting the Content-Encoding piqued my curiosity so looked around a bit and found this page:<br />
<a href="http://zuble.blogspot.com/2007/02/compressed-js-and-modrewrite.html" rel="nofollow">http://zuble.blogspot.com/2007/02/compressed-js-and-modrewrite.html</a></p>
<p>I made a couple of changes to his version:</p>
<p>	ForceType text/javascript<br />
	Header set Content-Encoding: gzip</p>
<p>	RewriteEngine On<br />
	RewriteCond %{HTTP_USER_AGENT} !&#8221;.*Safari.*&#8221;<br />
	RewriteCond %{HTTP_ACCEPT} &gt;gzip<br />
	RewriteCond %{REQUEST_FILENAME}.gz -f<br />
	RewriteRule ^(.+).js$ $1.js.gz [QSA,L]<br />
	ForceType text/javascript</p>
<p>Works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PKA</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-171047</link>
		<dc:creator>PKA</dc:creator>
		<pubDate>Fri, 23 Mar 2007 05:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-171047</guid>
		<description>You can view and analyze HTTP headers and HTTP content with SoftX HTTP Debugger.

PKA</description>
		<content:encoded><![CDATA[<p>You can view and analyze HTTP headers and HTTP content with SoftX HTTP Debugger.</p>
<p>PKA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priyamvad</title>
		<link>http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-163904</link>
		<dc:creator>Priyamvad</dc:creator>
		<pubDate>Fri, 09 Mar 2007 13:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2007/01/10/compressing-javascript-and-css/#comment-163904</guid>
		<description>Hey 
I'm getting "Header misspelled or module not included error when I try to specify the  directives in my httpd.conf file. What can be the reason for it?
how can I install mod_header for my Apache2.2.4??

Please
Help!</description>
		<content:encoded><![CDATA[<p>Hey<br />
I&#8217;m getting &#8220;Header misspelled or module not included error when I try to specify the  directives in my httpd.conf file. What can be the reason for it?<br />
how can I install mod_header for my Apache2.2.4??</p>
<p>Please<br />
Help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
