<?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"
	>
<channel>
	<title>Comments on: Two Important Differences between Firefox and IE Caching</title>
	<atom:link href="http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/</link>
	<description>News, articles and all things HttpWatch</description>
	<pubDate>Wed, 07 Jan 2009 14:37:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: yannack</title>
		<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/#comment-3039</link>
		<dc:creator>yannack</dc:creator>
		<pubDate>Thu, 18 Dec 2008 10:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=177#comment-3039</guid>
		<description>Thanks for your answer. That is what I suspected, sadly :( I knew about the varying URL trick, but this is not a valid option for me, for two reasons:
- I do not have control over most images, and some refuse to show if a parameter is added to the URL
- I don't want FF to reload cached images which are still valid. Many images never change, in fact, it is the case most of the time. I don't want to add useless traffic, I just want expired images to reload.
I guess it's just "too bad for me" :(
Thanks again for your answer though!
Yannack</description>
		<content:encoded><![CDATA[<p>Thanks for your answer. That is what I suspected, sadly :( I knew about the varying URL trick, but this is not a valid option for me, for two reasons:<br />
- I do not have control over most images, and some refuse to show if a parameter is added to the URL<br />
- I don&#8217;t want FF to reload cached images which are still valid. Many images never change, in fact, it is the case most of the time. I don&#8217;t want to add useless traffic, I just want expired images to reload.<br />
I guess it&#8217;s just &#8220;too bad for me&#8221; :(<br />
Thanks again for your answer though!<br />
Yannack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Httpwatch Blog</title>
		<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/#comment-3036</link>
		<dc:creator>Httpwatch Blog</dc:creator>
		<pubDate>Thu, 18 Dec 2008 09:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=177#comment-3036</guid>
		<description>yannack,

You cannot prevent caching in Firefox. Using no-store does force the use of the in-memory cache, but it only affects the reload of pages - not embedded resources such as images.

The only way we know to force an image reload in Firefox is to use a varying query string on the URL. We used a random number on the end of the image URL in this sample:

http://www.httpwatch.com/httpgallery/headers/</description>
		<content:encoded><![CDATA[<p>yannack,</p>
<p>You cannot prevent caching in Firefox. Using no-store does force the use of the in-memory cache, but it only affects the reload of pages - not embedded resources such as images.</p>
<p>The only way we know to force an image reload in Firefox is to use a varying query string on the URL. We used a random number on the end of the image URL in this sample:</p>
<p><a href="http://www.httpwatch.com/httpgallery/headers/" rel="nofollow">http://www.httpwatch.com/httpgallery/headers/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yannack</title>
		<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/#comment-3004</link>
		<dc:creator>yannack</dc:creator>
		<pubDate>Wed, 17 Dec 2008 18:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=177#comment-3004</guid>
		<description>Hi,
i am working with some caching issues. I have some javascript code which loads images from various websites, and refreshes these images, by simply clearing the source of the img or by changing the background of the iframe, depending on the type of display. However, I have found that in many cases, Firefox doesn't reload the image from source but uses the cached version; and this despite the fact that there is a Expires, last Modified, and Cache-control:max-age set so as to have an expiration after one second. Internet Explorer does not have this problem. 
I wonder if you, as experts of this domain, might know why, and how to prevent this apparently abnormal behavior?
Thanks a lot!

Here is a sample html page which doesn't reload properly with firefox, but does with IE:




function clearbg(){
	document.getElementById("myframe").style.background="none";
	document.getElementById("mypic").src="";
	setTimeout("setbg()",1000);
	
}

function setbg(){
	document.getElementById("myframe").style.background="url('http://www.sytadin.equipement.gouv.fr/tempsreel/parisint.gif')";
	document.getElementById("mypic").src="http://www.sytadin.equipement.gouv.fr/tempsreel/parisint.gif";
	setTimeout("clearbg()",1000);
}








</description>
		<content:encoded><![CDATA[<p>Hi,<br />
i am working with some caching issues. I have some javascript code which loads images from various websites, and refreshes these images, by simply clearing the source of the img or by changing the background of the iframe, depending on the type of display. However, I have found that in many cases, Firefox doesn&#8217;t reload the image from source but uses the cached version; and this despite the fact that there is a Expires, last Modified, and Cache-control:max-age set so as to have an expiration after one second. Internet Explorer does not have this problem.<br />
I wonder if you, as experts of this domain, might know why, and how to prevent this apparently abnormal behavior?<br />
Thanks a lot!</p>
<p>Here is a sample html page which doesn&#8217;t reload properly with firefox, but does with IE:</p>
<p>function clearbg(){<br />
	document.getElementById(&#8221;myframe&#8221;).style.background=&#8221;none&#8221;;<br />
	document.getElementById(&#8221;mypic&#8221;).src=&#8221;";<br />
	setTimeout(&#8221;setbg()&#8221;,1000);</p>
<p>}</p>
<p>function setbg(){<br />
	document.getElementById(&#8221;myframe&#8221;).style.background=&#8221;url(&#8217;http://www.sytadin.equipement.gouv.fr/tempsreel/parisint.gif&#8217;)&#8221;;<br />
	document.getElementById(&#8221;mypic&#8221;).src=&#8221;http://www.sytadin.equipement.gouv.fr/tempsreel/parisint.gif&#8221;;<br />
	setTimeout(&#8221;clearbg()&#8221;,1000);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Httpwatch Blog</title>
		<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/#comment-2786</link>
		<dc:creator>Httpwatch Blog</dc:creator>
		<pubDate>Tue, 09 Dec 2008 15:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=177#comment-2786</guid>
		<description>Pascal,

That bug appears to be related to using the back button to visit a page that was the direct result of a POST.

That's a not a good idea as it breaks the back button:

http://blog.httpwatch.com/2007/10/03/60-of-web-users-can%e2%80%99t-be-wrong-%e2%80%93-don%e2%80%99t-break-the-back-button/

It you always redirect a POST to a GET then the no-store cache directive fixes the problem.</description>
		<content:encoded><![CDATA[<p>Pascal,</p>
<p>That bug appears to be related to using the back button to visit a page that was the direct result of a POST.</p>
<p>That&#8217;s a not a good idea as it breaks the back button:</p>
<p><a href="http://blog.httpwatch.com/2007/10/03/60-of-web-users-can%e2%80%99t-be-wrong-%e2%80%93-don%e2%80%99t-break-the-back-button/" rel="nofollow">http://blog.httpwatch.com/2007/10/03/60-of-web-users-can%e2%80%99t-be-wrong-%e2%80%93-don%e2%80%99t-break-the-back-button/</a></p>
<p>It you always redirect a POST to a GET then the no-store cache directive fixes the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://blog.httpwatch.com/2008/10/15/two-important-differences-between-firefox-and-ie-caching/#comment-2782</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Tue, 09 Dec 2008 14:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.httpwatch.com/?p=177#comment-2782</guid>
		<description>"Also, if the page is reached using the Back button there’s no round-trip to the server and Firefox simple re-loads the page directly from the cache."

It's a bug of Firefox 3. 
https://bugzilla.mozilla.org/show_bug.cgi?id=441751</description>
		<content:encoded><![CDATA[<p>&#8220;Also, if the page is reached using the Back button there’s no round-trip to the server and Firefox simple re-loads the page directly from the cache.&#8221;</p>
<p>It&#8217;s a bug of Firefox 3.<br />
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=441751" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=441751</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
