<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thijs Lensselink&#039;s Blog &#187; mod_deflate</title>
	<atom:link href="http://lenss.nl/tag/mod_deflate/feed/" rel="self" type="application/rss+xml" />
	<link>http://lenss.nl</link>
	<description>Webdevelopment and stuff...</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:37:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Speed up and save traffic with Apache and mod_deflate</title>
		<link>http://lenss.nl/2009/02/speed-up-and-save-traffic-with-apache-and-mod_deflate/</link>
		<comments>http://lenss.nl/2009/02/speed-up-and-save-traffic-with-apache-and-mod_deflate/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 08:59:53 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod-rewrite]]></category>
		<category><![CDATA[mod_deflate]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=271</guid>
		<description><![CDATA[One of our sites was loading pretty slow. This is mostly caused by a very heavy design. But i still wanted to speed things up a bit. The first step was compressing all JavaScript files with the Yahoo YUI compressor. The next step was to activate mod_deflate and compress all text, XML, and media files [...]]]></description>
			<content:encoded><![CDATA[<p>One of our sites was loading pretty slow. This is mostly caused by a very heavy design. But i still wanted to speed things up a bit.</p>
<p>The first step was compressing all JavaScript files with the <a href="http://developer.yahoo.com/yui/compressor/">Yahoo YUI compressor</a>. The next step was to activate mod_deflate and compress all text, XML, and media files (JavaScript, CSS).</p>
<p>When the mod_deflate module is loaded in apache this is a pretty easy thing to do. Just add the following lines to a .htaccess file in the root of the web site / application.</p>
<blockquote><p>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css<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</p></blockquote>
<p>The first line enables mod_deflate for the specified extensions. And the other three lines are there because of the way some older browsers handle gzipped data.</p>
<p>To test if the the content is transmitted over the line in gzipped format i used the <a href="https://addons.mozilla.org/en-US/firefox/addon/3829">Live HTTP Header</a> Firefox extensions. This let&#8217;s you watch the Live HTTP headers as the fly by. </p>
<p>Check the HTTP/ 1.x 200 OK response from the webserver for the following line</p>
<blockquote><p>
Content-Encoding: gzip
</p></blockquote>
<p>And to test what happens if a browser doesn&#8217;t support gzipped data. You can set a configuration parameter in Firefox <a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries">about:config</a>.</p>
<p>gzip, deflate enabled:</p>
<blockquote><p>
network.http.accept-encoding = gzip,deflate</p></blockquote>
<p>gzip, deflate disabled:</p>
<blockquote><p>
network.http.accept-encoding = </p></blockquote>
<p>References :<br />
<a href="http://www.howtoforge.com/apache2_mod_deflate">http://www.howtoforge.com/apache2_mod_deflate</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2009/02/speed-up-and-save-traffic-with-apache-and-mod_deflate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
