Skip to content Skip to sidebar Skip to footer

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:

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"