<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>World of *Nix &#187; somewherein&#8230;</title>
	<atom:link href="http://www.lavluda.com/category/somewherein/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lavluda.com</link>
	<description>by S. M. Ibrahim (lavluda)</description>
	<lastBuildDate>Sun, 16 May 2010 16:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>Copyright &#xA9; 2010 World of *Nix </copyright>
	<managingEditor>lavluda@yahoo.com</managingEditor>
	<webMaster>lavluda@yahoo.com</webMaster>
	<category>posts</category>
	<image>
		<url>http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>World of *Nix &#187; somewherein&#8230;</title>
		<link>http://www.lavluda.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>by S. M. Ibrahim (lavluda)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>lavluda@yahoo.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Website Optimization 01: disable ETag in apache (debian/ubuntu)</title>
		<link>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/</link>
		<comments>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 15:27:54 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Helps]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming Help]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[somewherein...]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ETag]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server optimization]]></category>
		<category><![CDATA[server performance]]></category>
		<category><![CDATA[somewhereinblog]]></category>

		<guid isPermaLink="false">http://www.lavluda.com/?p=230</guid>
		<description><![CDATA[From last few months i am working to optimize our somewhereinblog.net server, because right now we are getting huge amount of hits everyday (1,00,000 + hits). In this series i will describe the tricks that i learned On my first post of this searies i will talk about ETag. Before disable this, first we need [...]


Related posts:<ol><li><a href='http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/' rel='bookmark' title='Permanent Link: Download iPhone SDK using wget'>Download iPhone SDK using wget</a> <small>If you are using slow connection like me and trying...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>From last few months i am working to optimize our somewhereinblog.net server, because right now we are getting huge amount of hits everyday (1,00,000 + hits). In this series i will describe the tricks that i learned <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><br class="spacer_" /></p>
<p>On my first post of this searies i will talk about ETag. Before disable this, first we need to know what is ETags. From wikipedia:</p>
<blockquote><p>An <strong>ETag</strong> (entity tag) is an <a title="Hypertext Transfer Protocol" href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP</a> response header returned by an HTTP/1.1 compliant <a title="Web server" href="http://en.wikipedia.org/wiki/Web_server">web server</a> used to determine change in content at a given <a title="Uniform Resource Locator" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL</a>. When a new HTTP response contains the same ETag as an older HTTP response, the contents are determined to be the same without further downloading. The header is useful for intermediary devices that perform <a class="mw-redirect" title="Caching" href="http://en.wikipedia.org/wiki/Caching">caching</a>, as well as for client <a class="mw-redirect" title="Web browsers" href="http://en.wikipedia.org/wiki/Web_browsers">web browsers</a> that cache results. One method of generating the ETag is based on the last modified time of the file and the size of the file.</p>
<p>In certain situations, ETags may not improve the performance of a web application. For instance, some ETag generation schemes incorporate the file&#8217;s <a title="Inode" href="http://en.wikipedia.org/wiki/Inode">inode</a> on the system. The file&#8217;s inode is unique to the file only on one specific machine. If a site has multiple servers, each with its own copy of the file (i.e. <a title="Load balancing" href="http://en.wikipedia.org/wiki/Load_balancing">load balancing</a>), then a user&#8217;s request for the same file may get served by a different machine. In that case, the inode will almost certainly be different and, if it is used to generate the ETag, it will cause the file to be re-downloaded.</p></blockquote>
<p>So, this is not always helpfull for all type of sites. Always remember, if you are not using anything, you should not enable or kept enable on server.</p>
<p>Apache by default enable this ETags. We need to disable this to get better performance. Here i am describing the steps for debian and ubuntu linux.</p>
<p>We will take help from mod_header to disable ETags, so first we need to enable the mod_header (apache module)</p>
<p>sudo a2enmod header</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>this command will enable mod_header. Now open /etc/apache2/apache2.conf with your faviourate browser.</p>
<p>sudo nano /etc/apache2/apache2.conf</p>
<p>then paste the under given code to this apache2.conf file</p>
<pre>Header unset ETag
FileETag None</pre>
<p>now restart the apache2, and check if it working or not. If every thing OK, then you will not see the etags anymore <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For better understanding i am giving you 2 screenshots.</p>
<p>Before ETag disable</p>
<p><br class="spacer_" /></p>
<p><a href="http://www.lavluda.com/wp-content/uploads/2008/10/beforeetagsdisable.png"><img class="alignnone size-medium wp-image-231" title="before etags disable" src="http://www.lavluda.com/wp-content/uploads/2008/10/beforeetagsdisable-300x178.png" alt="" width="300" height="178" /></a></p>
<p>After ETag disable:</p>
<p><a href="http://www.lavluda.com/wp-content/uploads/2008/10/afteretagsdisable.png"><img class="alignnone size-medium wp-image-232" title="after etag disable" src="http://www.lavluda.com/wp-content/uploads/2008/10/afteretagsdisable-300x194.png" alt="" width="300" height="194" /></a></p>
<p><br class="spacer_" /></p>
<p>If you don&#8217;t have root access to server, you still can do this from .htaccess , just copy that code to .htaccess instate of apache conf file.</p>
<p>Ask me if you have any question or problem about ETag.</p>
number of view: 2399<img src="http://www.lavluda.com/?ak_action=api_record_view&id=230&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/' rel='bookmark' title='Permanent Link: Download iPhone SDK using wget'>Download iPhone SDK using wget</a> <small>If you are using slow connection like me and trying...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.531 seconds -->
