Wednesday, October 17, 2012

jquery ajax caching

The cache property can be used to set the caching of Ajax data in the browser, the propertu can take value true or false.

When set to true – The ajax data response is cached in the browser and reused for to serve successive requests.

When set to false – The ajax data response is not cached in the browser and a fresh request is made to the server every time to fetch the data from the server.
Syntax
$.ajax({
    url: "ServerPage",
    cache: true/false,
   

Search Flipkart Products:
Flipkart.com

No comments: