I am initializing a download on click of a button.
The problem is that for the first time the request type is 200
(loading for the first time) and when I click on the download again its taking the data from cache (304 request type
)
I need to make it load new data every time and disable cache. How can I achieve this??
currently I use
$("#downloadbutton").live("click", function () {
window.location = "Handlers/somename.ashx?value="+somevalue+"&xxxxx="+$(".someid").text();
on button live click function. I am fine if we can avoid the same using ajax call(cache:false).