View Full Version : Iframe src url caching

03-22-2009, 07:27 AM
Hi guys

I am writing one iframe dynamically from my code like below.

document.write("<iframe src='" + location + "?querStr=" + querStr"' width='0px' height='0px'></iframe>");

location is something like - "http://myPage.com/myPage.html" and
the querStr is some parameters passing to the iframe. querStr contains some parameters which have timestamp appended. So the request url is always unique.
In IE/FF2 i am seeing proper unique request (200 response code) but in Firefox 3, the url is getting cached. From my code (before sending the request) i can see proper generation of the request but actually the request url gets cached. I saw it using fiddler and the response code is 304.
Any way to avoid this cahing? I am getting mad..please help!


03-25-2009, 11:37 AM
anyone can help please?