Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Iframe src url caching

    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!

  • #2
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would suggest u use innerHTML method instead of document.write().

    If you still face this issue, let me know

  • #3
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks but not getting exactly what u have suggested. Using innerHTML for iframe?

  • #4
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    any other idea?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •