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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -