caching - Override cache-control header on client side using JavaScript? -
is possible client override and/or ignore http cache-control headers of dynamically-loaded content (e.g. images loaded asynchronously) using javascript?
my javascript-based gis application requests images dynamically outside server sends following header response:
cache-control:max-age=0,must-revalidate
this results in browser sending duplicate requests same images (along if-none-match request header) results in http 304 not modified response, cache used anyway after delay.
i know images have not changed, don't have control on cache-control header sent server, force use of local browser cache when displaying image without having first revalidate server.
is possible change on client side?
you should able override local cache javascript doing location.reload(true) not browsers behave properly - use frame repopulate non html content
Comments
Post a Comment