<?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: Tomcat &#8211; No caching of RESTlet resources for Firefox</title>
	<atom:link href="http://www.markhneedham.com/blog/2008/10/22/tomcat-no-caching-of-pages-for-firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markhneedham.com/blog/2008/10/22/tomcat-no-caching-of-pages-for-firefox/</link>
	<description>Thoughts on Software Development</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark Needham</title>
		<link>http://www.markhneedham.com/blog/2008/10/22/tomcat-no-caching-of-pages-for-firefox/comment-page-1/#comment-903</link>
		<dc:creator>Mark Needham</dc:creator>
		<pubDate>Fri, 24 Oct 2008 12:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=525#comment-903</guid>
		<description>Ah cool, good to know.

&#039;Cache-Control&#039;, &#039;no-cache&#039; and 
&#039;Pragma&#039;, &#039;no-cache&#039;

seem to already be set by RESTlet by default. I didn&#039;t know about the other ones though.

Thanks, Mark</description>
		<content:encoded><![CDATA[<p>Ah cool, good to know.</p>
<p>&#8216;Cache-Control&#8217;, &#8216;no-cache&#8217; and<br />
&#8216;Pragma&#8217;, &#8216;no-cache&#8217;</p>
<p>seem to already be set by RESTlet by default. I didn&#8217;t know about the other ones though.</p>
<p>Thanks, Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren Hobbs</title>
		<link>http://www.markhneedham.com/blog/2008/10/22/tomcat-no-caching-of-pages-for-firefox/comment-page-1/#comment-900</link>
		<dc:creator>Darren Hobbs</dc:creator>
		<pubDate>Fri, 24 Oct 2008 09:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=525#comment-900</guid>
		<description>Sorry, also forgot to add that for the definitive guide to HTTP caching (and probably way more than you ever wanted to know about HTTP!) Check out this &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9&quot; rel=&quot;nofollow&quot;&gt;section of the HTTP spec&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Sorry, also forgot to add that for the definitive guide to HTTP caching (and probably way more than you ever wanted to know about HTTP!) Check out this <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9" rel="nofollow">section of the HTTP spec</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren Hobbs</title>
		<link>http://www.markhneedham.com/blog/2008/10/22/tomcat-no-caching-of-pages-for-firefox/comment-page-1/#comment-899</link>
		<dc:creator>Darren Hobbs</dc:creator>
		<pubDate>Fri, 24 Oct 2008 09:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.markhneedham.com/blog/?p=525#comment-899</guid>
		<description>There is a standard incantation for persuading web caches not to cache your stuff. You need more than what you&#039;ve currently got. This should cover most flavours of proxy and web browser:

&lt;pre&gt;
    private void invokeTheCachePreventionIncantation(HttpServletResponse response) {
        response.setHeader(&quot;Cache-Control&quot;, &quot;no-store, no-cache, must-revalidate&quot;); //HTTP 1.1
        // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
        response.addHeader(&quot;Cache-Control&quot;, &quot;post-check=0, pre-check=0&quot;);
        response.setHeader(&quot;Pragma&quot;, &quot;no-cache&quot;); //HTTP 1.0
        response.setDateHeader(&quot;Expires&quot;, 0); //prevents caching at the proxy server
    }
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>There is a standard incantation for persuading web caches not to cache your stuff. You need more than what you&#8217;ve currently got. This should cover most flavours of proxy and web browser:</p>
<pre>
    private void invokeTheCachePreventionIncantation(HttpServletResponse response) {
        response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); //HTTP 1.1
        // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
        response.addHeader("Cache-Control", "post-check=0, pre-check=0");
        response.setHeader("Pragma", "no-cache"); //HTTP 1.0
        response.setDateHeader("Expires", 0); //prevents caching at the proxy server
    }
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

