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({
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.
$.ajax({
url: "ServerPage",
cache: true/false,
…
No comments:
Post a Comment