...

View Full Version : Iframe src url caching



monn_dg
03-22-2009, 08: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!
Thanks!

rochakchauhan
03-22-2009, 12:50 PM
I would suggest u use innerHTML method instead of document.write().

If you still face this issue, let me know

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum