Force Browser To Not Use Cache When Requested For File Using Anchor Tag
I have an anchor tag that is used to request the download of a file. Like this: Do
Solution 1:
I'll add as an answer. Try adding a random number to the query part of the href:
?param=[random]
Solution 2:
As per my own comment for one of the answers:
According to wikipedia I can set the response header parameter: Cache-Control: no-cache
http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Effects_of_selected_HTTP_header_fields
After receiving a response with this header, the browser will not cache this data anymore.
Post a Comment for "Force Browser To Not Use Cache When Requested For File Using Anchor Tag"