View Full Version : Iframe src url caching

03-22-2009, 09:27 AM
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-22-2009, 01:50 PM
I would suggest u use innerHTML method instead of document.write().

If you still face this issue, let me know

03-23-2009, 07:59 AM
Thanks but not getting exactly what u have suggested. Using innerHTML for iframe?

03-25-2009, 01:39 PM
any other idea?