Results 1 to 3 of 3

Thread: Ajax Problems in IE

  1. #1
    Join Date
    Feb 2011
    Waterloo, Ontario, Canada

    Ajax Problems in IE

    Hey all. This isn't really a question so much as a "watch out for".

    I spent half a day's work yesterday trying to figure out some horrible problem that my page was having. Basically, it would read a table of data from my database, and then depending on whether i click add or remove a row, it would do so, and read the new table of data, all using Ajax. This worked fine with firefox and safari, but I was having the weirdest problems with internet explorer. I would click the 'add' button, and it would pull up rows that weren't even in the database anymore as of hours ago. So immediately I knew this was some sort of cache problem and I found this page:


    The important part being this regarding Ajax:

    Most of the implementations also realize HTTP caching. Internet Explorer and Firefox do, but there is a difference in how and when the cached data is revalidated. Firefox revalidates the cached response every time the page is refreshed, issuing an "If-Modified-Since" header with value set to the value of the "Last-Modified" header of the cached response.

    Internet Explorer does so only if the cached response is expired (i.e., after the date of received "Expires" header).

    I used the third work around on that page, change all requests to use POST instead of GET.

    I hope this saves someone hours of frustration!

  2. #2
    Join Date
    Apr 2010

  3. #3
    Join Date
    Jul 2010
    It only has to work long enough to get another browser I wouldn't even trust it to do that right (better check that MD5).
    I use (, ; : -) as I please- instead of learning the English language specification: I decided to learn Scheme and Java;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles