SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ajax, IE, and caching

    Has anyone run into problems with IE and page caching?

    The script I am working on sends the same form data to a PHP page and then returns the value to the script. When the form data is the same or the results are the same, IE doesnt update the page at all. Anyone have any suggestions to fix this? I tried adding some meta tags to prevent caching the page but that doesn't seem to work.

  2. #2
    Awesome Addict
    Join Date
    Mar 2004
    Location
    Toronto, Canada
    Posts
    326
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not send a random number along in the query string as a parameter? That might help...

  3. #3
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a bad idea. I will give that a shot and see what happens.

  4. #4
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tried that and still has the same result.

  5. #5
    SitePoint Addict Shockt's Avatar
    Join Date
    Jan 2005
    Location
    California
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Before
    Code:
    http.open("GET", url + escape(message), true);
    After
    Code:
    http.open("POST", url + escape(message), true);
    And it works. How strange.


Bookmarks

Posting Permissions

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