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 3 of 3
  1. #1
    ubh
    ubh is offline
    Regular Coder ubh's Avatar
    Join Date
    Apr 2008
    Location
    Portland, Oregon U.S.A.
    Posts
    443
    Thanks
    108
    Thanked 15 Times in 14 Posts

    IE vs Firefox problem. RESOLVED

    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

    Requirements::
    - Web Server
    - PHP 5
    Last edited by ubh; 09-03-2008 at 07:13 AM.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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
    Code:
    xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
    or you can use random numbers with a querystring

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • Users who have thanked A1ien51 for this post:

    ubh (09-04-2008)

  • #3
    ubh
    ubh is offline
    Regular Coder ubh's Avatar
    Join Date
    Apr 2008
    Location
    Portland, Oregon U.S.A.
    Posts
    443
    Thanks
    108
    Thanked 15 Times in 14 Posts
    Worked perfectly!
    Thanks A1ien51!!


  •  

    Posting Permissions

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