<?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: Serving gzip compressed Scriptaculous and Prototype with ColdFusion</title>
	<atom:link href="http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/</link>
	<description>Programming: coldfusion, php, javascript, sql, css, scriptaculous, seo</description>
	<lastBuildDate>Wed, 30 Jun 2010 14:15:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jules</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/comment-page-1/#comment-929</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Wed, 10 Feb 2010 01:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/4/19/GZ-compressed-scriptaculous-181#comment-929</guid>
		<description>&lt;a href=&quot;#comment-928&quot; rel=&quot;nofollow&quot;&gt;@Usolis&lt;/a&gt; 
Thank you for that, Usolis. I&#039;ll probably take that and change a few things, and package it with my next compressed version.</description>
		<content:encoded><![CDATA[<p><a href="#comment-928" rel="nofollow">@Usolis</a><br />
Thank you for that, Usolis. I&#8217;ll probably take that and change a few things, and package it with my next compressed version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usolis</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/comment-page-1/#comment-928</link>
		<dc:creator>Usolis</dc:creator>
		<pubDate>Mon, 08 Feb 2010 11:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/4/19/GZ-compressed-scriptaculous-181#comment-928</guid>
		<description>[sourcecode lang=&quot;php&quot;]&lt;?php 
	// serve it as javascript 
	header(&quot;Content-Type: application/x-javascript&quot;); 
	
	// you don&#039;t want it reloading the js every time because the 
	// auto generated content always has a new date stamp 
	header(&quot;Cache-Control: max-age=604800&quot;); 
	header(&quot;Last-Modified: Thu, 28 Jan 2010 22:31:25 GMT&quot;); 
	
	// get the request header and search for gzip 
	$pos = strpos($_SERVER[HTTP_ACCEPT_ENCODING],&quot;gzip&quot;); 
	// Careful here - if you do if(strpos()) then it will fail 
	// if gzip is the first item in the list (i.e. it&#039;s position 
	// in the string is zero. Instead we are checking for 
	// the failure to make an assignment 
	if ($pos === false) { 
		$js = file_get_contents(&quot;./prototype1601scriptaculous181.js&quot;); 
	} else 	{ 
		header(&quot;Content-Encoding: gzip&quot;);
		$pos = strpos($_SERVER[HTTP_USER_AGENT],&quot;MSIE 6.0; Windows&quot;);
		if (!($pos === false)) {
			header(&quot;Pragma: &quot;); 
		}
		$js = file_get_contents(&quot;./prototype1601scriptaculous181.gz&quot;); 
	} 
	echo $js; 
?&gt;[/sourcecode]
That should be up to date! (not tested)</description>
		<content:encoded><![CDATA[<pre class="brush: php;">&lt;?php
	// serve it as javascript
	header(&quot;Content-Type: application/x-javascript&quot;); 

	// you don't want it reloading the js every time because the
	// auto generated content always has a new date stamp
	header(&quot;Cache-Control: max-age=604800&quot;);
	header(&quot;Last-Modified: Thu, 28 Jan 2010 22:31:25 GMT&quot;); 

	// get the request header and search for gzip
	$pos = strpos($_SERVER[HTTP_ACCEPT_ENCODING],&quot;gzip&quot;);
	// Careful here - if you do if(strpos()) then it will fail
	// if gzip is the first item in the list (i.e. it's position
	// in the string is zero. Instead we are checking for
	// the failure to make an assignment
	if ($pos === false) {
		$js = file_get_contents(&quot;./prototype1601scriptaculous181.js&quot;);
	} else 	{
		header(&quot;Content-Encoding: gzip&quot;);
		$pos = strpos($_SERVER[HTTP_USER_AGENT],&quot;MSIE 6.0; Windows&quot;);
		if (!($pos === false)) {
			header(&quot;Pragma: &quot;);
		}
		$js = file_get_contents(&quot;./prototype1601scriptaculous181.gz&quot;);
	}
	echo $js;
?&gt;</pre>
<p>That should be up to date! (not tested)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/comment-page-1/#comment-919</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Thu, 04 Feb 2010 00:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/4/19/GZ-compressed-scriptaculous-181#comment-919</guid>
		<description>&lt;a href=&quot;#comment-916&quot; rel=&quot;nofollow&quot;&gt;@Usolis&lt;/a&gt; 
Thank you for sharing! Be sure to check out the latest version with fixes for IEs and Safari:
http://www.webveteran.com/blog/index.php/web-coding/a-better-fix-for-ie6-and-gzip-compressed-javascripts/</description>
		<content:encoded><![CDATA[<p><a href="#comment-916" rel="nofollow">@Usolis</a><br />
Thank you for sharing! Be sure to check out the latest version with fixes for IEs and Safari:<br />
<a href="http://www.webveteran.com/blog/index.php/web-coding/a-better-fix-for-ie6-and-gzip-compressed-javascripts/" rel="nofollow">http://www.webveteran.com/blog/index.php/web-coding/a-better-fix-for-ie6-and-gzip-compressed-javascripts/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usolis</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/comment-page-1/#comment-916</link>
		<dc:creator>Usolis</dc:creator>
		<pubDate>Fri, 29 Jan 2010 17:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/4/19/GZ-compressed-scriptaculous-181#comment-916</guid>
		<description>I hope this comes out OK – here is my PHP version!

[sourcecode lang=&#039;php&#039;]&lt;?php
// serve it as javascript
header(&quot;Content-Type: application/x-javascript&quot;);
// you don&#039;t want it reloading the js every time because the
// auto generated content always has a new date stamp
header(&quot;Cache-Control: max-age=604800&quot;); 
header(&quot;Last-Modified: Thu, 28 Jan 2010 22:31:25 GMT&quot;);
// get the request header and search for gzip
$pos = strpos($_SERVER[HTTP_ACCEPT_ENCODING],&quot;gzip&quot;);
// Careful here - if you do if(strpos()) then it will fail
// if gzip is the first item in the list (i.e. it&#039;s position
// in the string is zero. Instead we are checking for
// the failure to make an assignment
if ($pos === false)
{
  $js = file_get_contents(&quot;./prototype1601scriptaculous181.js&quot;);
}
else
{
  header(&quot;Content-Encoding: gzip&quot;);
  $js = file_get_contents(&quot;./prototype1601scriptaculous181.gz&quot;);
}
echo $js;
?&gt;[/sourcecode]</description>
		<content:encoded><![CDATA[<p>I hope this comes out OK – here is my PHP version!</p>
<pre class="brush: php;">&lt;?php
// serve it as javascript
header(&quot;Content-Type: application/x-javascript&quot;);
// you don't want it reloading the js every time because the
// auto generated content always has a new date stamp
header(&quot;Cache-Control: max-age=604800&quot;);
header(&quot;Last-Modified: Thu, 28 Jan 2010 22:31:25 GMT&quot;);
// get the request header and search for gzip
$pos = strpos($_SERVER[HTTP_ACCEPT_ENCODING],&quot;gzip&quot;);
// Careful here - if you do if(strpos()) then it will fail
// if gzip is the first item in the list (i.e. it's position
// in the string is zero. Instead we are checking for
// the failure to make an assignment
if ($pos === false)
{
  $js = file_get_contents(&quot;./prototype1601scriptaculous181.js&quot;);
}
else
{
  header(&quot;Content-Encoding: gzip&quot;);
  $js = file_get_contents(&quot;./prototype1601scriptaculous181.gz&quot;);
}
echo $js;
?&gt;</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: DeepDown</title>
		<link>http://www.webveteran.com/blog/index.php/web-coding/coldfusion/serving-gzip-compressed-scriptaculous-and-prototype-with-coldfusion/comment-page-1/#comment-886</link>
		<dc:creator>DeepDown</dc:creator>
		<pubDate>Sat, 05 Dec 2009 14:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.webveteran.com/blog/index.cfm/2008/4/19/GZ-compressed-scriptaculous-181#comment-886</guid>
		<description>Nice and clean approach!</description>
		<content:encoded><![CDATA[<p>Nice and clean approach!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
