Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-18-2005, 07:57 PM #1
- Join Date
- Jul 2005
- Thanked 0 Times in 0 Posts
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?
08-19-2005, 12:15 AM #2
- 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).