<?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: How to avoid a page being cached</title>
	<atom:link href="http://www.fireflake.com/tech/2009/06/16/how-to-avoid-a-page-being-cached/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fireflake.com/tech/2009/06/16/how-to-avoid-a-page-being-cached/</link>
	<description>Thinking about computer programming.</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:53:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://www.fireflake.com/tech/2009/06/16/how-to-avoid-a-page-being-cached/comment-page-1/#comment-440</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 18 Jun 2009 08:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.fireflake.com/tech/?p=210#comment-440</guid>
		<description>Ah, timestamp! Much easier than to generate a random string, why didn&#039;t I think of that? :)</description>
		<content:encoded><![CDATA[<p>Ah, timestamp! Much easier than to generate a random string, why didn&#8217;t I think of that? <img src='http://www.fireflake.com/tech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MMM</title>
		<link>http://www.fireflake.com/tech/2009/06/16/how-to-avoid-a-page-being-cached/comment-page-1/#comment-439</link>
		<dc:creator>MMM</dc:creator>
		<pubDate>Thu, 18 Jun 2009 08:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.fireflake.com/tech/?p=210#comment-439</guid>
		<description>Hi, great summary. Some time ago I did run into the same problem and solved it this using the following HTTP headers (or HTML page with meta tags). Only the combined power of all the redundant headers seems to work with most HTTP servers and HTTP proxies:

Cache-Control: no-cache, no-store
Pragma: no-cache
Expires: 0

Another possibility as mentioned is to postfix a request with a unique pattern, best when you don&#039;t have full control over HTTP/HTML header. Let&#039;s say you have a file or an image that you want to make sure is not downloaded from a cached, then you can add a ?timestamp=3897398739837 to the URL. I use a UTC timestamp in seconds instead of random text, here is a JavaScript code snippet to get a UTC timestamp:

var timestamp = d.getTime()+d.getTimezoneOffset()*60000;

Hope it helps :)</description>
		<content:encoded><![CDATA[<p>Hi, great summary. Some time ago I did run into the same problem and solved it this using the following HTTP headers (or HTML page with meta tags). Only the combined power of all the redundant headers seems to work with most HTTP servers and HTTP proxies:</p>
<p>Cache-Control: no-cache, no-store<br />
Pragma: no-cache<br />
Expires: 0</p>
<p>Another possibility as mentioned is to postfix a request with a unique pattern, best when you don&#8217;t have full control over HTTP/HTML header. Let&#8217;s say you have a file or an image that you want to make sure is not downloaded from a cached, then you can add a ?timestamp=3897398739837 to the URL. I use a UTC timestamp in seconds instead of random text, here is a JavaScript code snippet to get a UTC timestamp:</p>
<p>var timestamp = d.getTime()+d.getTimezoneOffset()*60000;</p>
<p>Hope it helps <img src='http://www.fireflake.com/tech/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

