<?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: Speed Up Sites with htaccess Caching</title>
	<atom:link href="http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Wed, 18 Nov 2009 23:28:48 -0500</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: suresh</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-98325</link>
		<dc:creator>suresh</dc:creator>
		<pubDate>Thu, 27 Aug 2009 08:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-98325</guid>
		<description>very useful article......... thank u so much :)</description>
		<content:encoded><![CDATA[<p>very useful article&#8230;&#8230;&#8230; thank u so much :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai Krishna Pampani</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-89304</link>
		<dc:creator>Sai Krishna Pampani</dc:creator>
		<pubDate>Sun, 19 Jul 2009 04:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-89304</guid>
		<description>Thank You very much for such a useful article.</description>
		<content:encoded><![CDATA[<p>Thank You very much for such a useful article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashank</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-73620</link>
		<dc:creator>Shashank</dc:creator>
		<pubDate>Wed, 13 May 2009 15:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-73620</guid>
		<description>The article is good and explanatory.
I have following url&#039;s:
&lt;pre&gt;example.com/index.php?module=website&amp;page=somepage1
example.com/index.php?module=report&amp;page=somepage2
example.com/index.php?module=admin&amp;page=somepage3&lt;/pre&gt;

Now i want to change it to seo friendly url. .
&lt;pre&gt;example.com/somepage1.html
example.com/report/somepage2.html
example.com/admin/somepage3.html &lt;/pre&gt;
All the pages may or may not be available physically.

what should be the &lt;strong&gt;url rewriting&lt;/strong&gt; steps.</description>
		<content:encoded><![CDATA[<p>The article is good and explanatory.<br />
I have following url&#8217;s:</p>
<pre>example.com/index.php?module=website&#038;page=somepage1
example.com/index.php?module=report&#038;page=somepage2
example.com/index.php?module=admin&#038;page=somepage3</pre>
<p>Now i want to change it to seo friendly url. .</p>
<pre>example.com/somepage1.html
example.com/report/somepage2.html
example.com/admin/somepage3.html </pre>
<p>All the pages may or may not be available physically.</p>
<p>what should be the <strong>url rewriting</strong> steps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vit</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-19143</link>
		<dc:creator>Andrew Vit</dc:creator>
		<pubDate>Tue, 25 Sep 2007 18:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-19143</guid>
		<description>I&#039;m looking at Firebug&#039;s Net panel to see what requests are happening, and no matter what I do, it seems the CSS and JS files referenced in the HTML document are always re-requested. 

The response for these files appears to return the correct headers:

&lt;code&gt;
Last-Modified  Thu, 07 Jun 2007 20:05:38 GMT
Cache-Control  max-age=604800
Expires  Tue, 02 Oct 2007 18:25:13 GMT
&lt;/code&gt;

It&#039;s still a lot fewer files than with a fresh, unprimed request (no images are re-requested), but I&#039;m wondering if there&#039;s a way to prevent these from being called each time as well.</description>
		<content:encoded><![CDATA[<p>I&#8217;m looking at Firebug&#8217;s Net panel to see what requests are happening, and no matter what I do, it seems the CSS and JS files referenced in the HTML document are always re-requested. </p>
<p>The response for these files appears to return the correct headers:</p>
<p><code>Last-Modified  Thu, 07 Jun 2007 20:05:38 GMT<br />
Cache-Control  max-age=604800<br />
Expires  Tue, 02 Oct 2007 18:25:13 GMT</code></p>
<p>It&#8217;s still a lot fewer files than with a fresh, unprimed request (no images are re-requested), but I&#8217;m wondering if there&#8217;s a way to prevent these from being called each time as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandrake</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-361</link>
		<dc:creator>Mandrake</dc:creator>
		<pubDate>Wed, 31 Jan 2007 06:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-361</guid>
		<description>I am confused, I am a total newb but where do I put these settings in I assumed it was the htaccess file but wuth I used the following I recieved an Error 403 Permission denied!!


&lt;pre&gt;AddHandler application/x-httpd-php .htm 
Options +FollowSymLinks -Indexes -ExecCGI 
DirectoryIndex index.htm 
AddDefaultCharset ISO-8859-1 
AddCharset ISO-8859-1 .css 
DefaultLanguage en 
ServerSignature Off 
 
ExpiresActive On 
ExpiresByType image/gif A2592000 
ExpiresByType image/png A2592000 
ExpiresByType image/jpeg A2592000 
ExpiresByType image/x-icon A2592000 
ExpiresByType application/pdf A2592000 
ExpiresByType application/x-javascript A2592000 
ExpiresByType text/plain A2592000 
ExpiresByType text/css A10800 &lt;/pre&gt;


Any help would be apprieciated plus I also have access to the &lt;strong&gt;httpd.conf&lt;/strong&gt; in Apache on our server..

I await your reply</description>
		<content:encoded><![CDATA[<p>I am confused, I am a total newb but where do I put these settings in I assumed it was the htaccess file but wuth I used the following I recieved an Error 403 Permission denied!!</p>
<pre>AddHandler application/x-httpd-php .htm
Options +FollowSymLinks -Indexes -ExecCGI
DirectoryIndex index.htm
AddDefaultCharset ISO-8859-1
AddCharset ISO-8859-1 .css
DefaultLanguage en
ServerSignature Off 

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType application/pdf A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/plain A2592000
ExpiresByType text/css A10800 </pre>
<p>Any help would be apprieciated plus I also have access to the <strong>httpd.conf</strong> in Apache on our server..</p>
<p>I await your reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-34</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Tue, 05 Dec 2006 11:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-34</guid>
		<description>In your example:

&lt;pre&gt;# DONT CACHE
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma&lt;/pre&gt;


you suggest that unsetting cache headers will stop a resource being cached. This is wrong, when there are no cache headers the client can choose whether to cache (setting a client defined heuristic) or not. You must explicitly state no-cache to ensure all clients do not cache resources.

@fostware: opening http connections costs time, and it is not always the case that opening more connections is efficient. Reducing the number of resources is much more effective than just piling up lots of open HTTP connections. Ideally, browsers would follow Opera&#039;s lead and enable HTTP pipelining, allowing high efficiency over fewer (less costly) connections. See http://www.die.net/musings/page_load_time/</description>
		<content:encoded><![CDATA[<p>In your example:</p>
<pre># DONT CACHE
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma</pre>
<p>you suggest that unsetting cache headers will stop a resource being cached. This is wrong, when there are no cache headers the client can choose whether to cache (setting a client defined heuristic) or not. You must explicitly state no-cache to ensure all clients do not cache resources.</p>
<p>@fostware: opening http connections costs time, and it is not always the case that opening more connections is efficient. Reducing the number of resources is much more effective than just piling up lots of open HTTP connections. Ideally, browsers would follow Opera&#8217;s lead and enable HTTP pipelining, allowing high efficiency over fewer (less costly) connections. See http://www.die.net/musings/page_load_time/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FostWare</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-24</link>
		<dc:creator>FostWare</dc:creator>
		<pubDate>Mon, 04 Dec 2006 22:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-24</guid>
		<description>The other option to speed up websites, if you&#039;ve got the bandwidth, is to use www.site.com for text and create duplicates of the first virtual host, called images.site.com and images2.site.com.

FF and IE (by default) process 4 simultaneous requests, but will process each site synchronusly. Split the requests and you make the clients browsers behave like a multithreaded downloader - overall responsiveness is better however you will have the burst requests equivalent to three clients :)</description>
		<content:encoded><![CDATA[<p>The other option to speed up websites, if you&#8217;ve got the bandwidth, is to use www.site.com for text and create duplicates of the first virtual host, called images.site.com and images2.site.com.</p>
<p>FF and IE (by default) process 4 simultaneous requests, but will process each site synchronusly. Split the requests and you make the clients browsers behave like a multithreaded downloader &#8211; overall responsiveness is better however you will have the burst requests equivalent to three clients :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T38</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-23</link>
		<dc:creator>T38</dc:creator>
		<pubDate>Mon, 04 Dec 2006 20:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-23</guid>
		<description>Referring to Praeses reply to DrBacchus, the ever-so-slight-performance-increase may or may NOT be ever so slight, depending upon how your file structure is set up.

.htaccess files are very useful tools--I use them on my web sites also, but never without carefully considering the pros and cons of turning htaccess on.  If you have no other reason than the speed tweaks discussed in this article (and it is a good article, despite my minor quibble with using .htaccess files), then as DrBacchus said, put the tweaks in your httpd.conf file rather than a .htaccess file.  Here&#039;s why:

Suppose your web directory looks like this: /var/www/localhost/htdocs/this/is/a/deeply/nested/path/to/somewhere

Given that your web root is /var/www/localhost, then in this case, Apache will have to look for /var/www/localhost/.htaccess, /var/www/localhost/htdocs/.htaccess, /var/www/localhost/htdocs/this/.htaccess, /var/www/localhost/htdocs/this/is/.htaccess, ..., /var/www/localhost/htdocs/this/is/a/deeply/nested/path/to/somewhere/.htaccess to make sure that it correctly uses all of the applicable directives.  Each of these lookups--whether an .htaccess file exists in that directory or not--incurs a performance hit.  Furthermore, it does this for EACH file called by your html code.  So, every image, every style sheet and every include in your code requires a lookup in each subdirectory of your web root.

So, if you are on a shared host and will be using .htaccess files anyway--go ahead and add this tweak to your .htaccess file.  But, if you are on a dedicated server, and/or have no other reason to use .htaccess files, then apply the tweak to your httpd.conf file for the biggest performance gains.</description>
		<content:encoded><![CDATA[<p>Referring to Praeses reply to DrBacchus, the ever-so-slight-performance-increase may or may NOT be ever so slight, depending upon how your file structure is set up.</p>
<p>.htaccess files are very useful tools&#8211;I use them on my web sites also, but never without carefully considering the pros and cons of turning htaccess on.  If you have no other reason than the speed tweaks discussed in this article (and it is a good article, despite my minor quibble with using .htaccess files), then as DrBacchus said, put the tweaks in your httpd.conf file rather than a .htaccess file.  Here&#8217;s why:</p>
<p>Suppose your web directory looks like this: /var/www/localhost/htdocs/this/is/a/deeply/nested/path/to/somewhere</p>
<p>Given that your web root is /var/www/localhost, then in this case, Apache will have to look for /var/www/localhost/.htaccess, /var/www/localhost/htdocs/.htaccess, /var/www/localhost/htdocs/this/.htaccess, /var/www/localhost/htdocs/this/is/.htaccess, &#8230;, /var/www/localhost/htdocs/this/is/a/deeply/nested/path/to/somewhere/.htaccess to make sure that it correctly uses all of the applicable directives.  Each of these lookups&#8211;whether an .htaccess file exists in that directory or not&#8211;incurs a performance hit.  Furthermore, it does this for EACH file called by your html code.  So, every image, every style sheet and every include in your code requires a lookup in each subdirectory of your web root.</p>
<p>So, if you are on a shared host and will be using .htaccess files anyway&#8211;go ahead and add this tweak to your .htaccess file.  But, if you are on a dedicated server, and/or have no other reason to use .htaccess files, then apply the tweak to your httpd.conf file for the biggest performance gains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Praeses</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-22</link>
		<dc:creator>Praeses</dc:creator>
		<pubDate>Mon, 04 Dec 2006 17:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-22</guid>
		<description>Not everyone has control over their own server configuration file, yet sometimes they do have .htaccess accessibility.  In that case if .htaccess files are already enabled, the performance benefit of tweaking your caching settings will more than likely offset the penalty for using the file in the first place.

Regardless if you are applying these settings in your httpd.conf or your .htaccess, the information seems correct.  In the latter everything in this article is applicable.

I&#039;m still a firm believer in having .htaccess on commonly hosted websites.  The ability to allow clients to make changes on their own (and many management interfaces utilize them by default) will often keep clients happier than the ever so slight performance increase by disabling them all together.</description>
		<content:encoded><![CDATA[<p>Not everyone has control over their own server configuration file, yet sometimes they do have .htaccess accessibility.  In that case if .htaccess files are already enabled, the performance benefit of tweaking your caching settings will more than likely offset the penalty for using the file in the first place.</p>
<p>Regardless if you are applying these settings in your httpd.conf or your .htaccess, the information seems correct.  In the latter everything in this article is applicable.</p>
<p>I&#8217;m still a firm believer in having .htaccess on commonly hosted websites.  The ability to allow clients to make changes on their own (and many management interfaces utilize them by default) will often keep clients happier than the ever so slight performance increase by disabling them all together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrBacchus</title>
		<link>http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-21</link>
		<dc:creator>DrBacchus</dc:creator>
		<pubDate>Mon, 04 Dec 2006 11:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/speed-up-sites-with-htaccess-caching.html#comment-21</guid>
		<description>Yes, these techniques *can* result in performance improvements, but should be put in your main server configuration file, rather than in .htaccess files. .htaccess files, by their very nature, cause performance degradation on your website, and so should be avoided whenever possible.</description>
		<content:encoded><![CDATA[<p>Yes, these techniques *can* result in performance improvements, but should be put in your main server configuration file, rather than in .htaccess files. .htaccess files, by their very nature, cause performance degradation on your website, and so should be avoided whenever possible.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
