The browser cache behaves differently on different settings. You should not depend on user settings or the user’s browser. It’s possible to make the browser ignore headers also.
There are two ways to prevent caching.
–> Change AJAX request to POST. Browsers don’t cache POST requests.
–> Better Way & good way: add an additional parameter to your request with either the current time stamp or any other unique number.
params = "action=" + action
+ "&domain=" + encodeURIComponent(domain)
+ "&preventCache="+new Date();