View Full Version : IE vs Firefox problem. RESOLVED

09-03-2008, 04:35 AM
Hi There, I have a little application that reads and writes html to a html document that resides on the server via use of Ajaxt xmlHTTPRequest.

Problem is that for some reason the application works fine on Firefox and Safari but not IE because from what I can understand is due to a cache problem.

Have a look, I created this image as a reference on all the steps that take place upon a single client-side request to best explain to you what my guess that problem might be.
So after all my testing the application completes steps 1-5 in IE perfectly, but once step 6(reloads .html documents new content back into the applications pallet) is added to the mix we run into a IE problem.
Instead of loading the .html documents new content, it loads a cache version of the .html document from when the application started up.

Anyone available to give me pointers on why IE is preforming this way??
Thanks all.

Here is a link to the application in action.

Download Now ("")

- Web Server
- PHP 5

09-03-2008, 05:01 AM
I am not going to look at the code.

If you are having a cache problem, than that means you need to handle it.

If you are using a GET request, it is designed to cache so it makes it easier for the user to retrieve data.

Use no cache headers on the page you are requesting.

you can set the if-modified-since header on the xmlhttprequest object

xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");

or you can use random numbers with a querystring


09-03-2008, 08:13 AM
Worked perfectly!
Thanks A1ien51!!