Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Thanked 0 Times in 0 Posts

    Question AJAX: How Can I Make Browser to Cache The XML So It won't retrieve XML again?

    I am developing AJAX code. After it retrieve xml from responseXML, it generate a webpage with Next button. After visitor click on the Next button, it goes to another page which has a Back button. What I want is that after visitor click the Back button to go back to the original page, this original page won't do XMLHttpRequest() and retrieve responseXML again, and it just uses the previous data retrieved. I want to save bandwidth, server resource and speed thing up.

    How to do that?

    Many thanks.

  • #2
    Senior Coder
    Join Date
    Jul 2004
    New Zealand
    Thanked 2 Times in 2 Posts
    This really is up to the browser to do. Even if you request the document again, if your server is setup correctly, the browser should just use the cached version.
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).


    Posting Permissions

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