Is there a clean way to tell browser not to cache image in img tag like
<img src="" cahe="no-cache"/>
or force reload it with html5? If not, maybe you know where can i suggest it, because the problem is around for quite a while…
I know you can attach “?randomstring” at the end of src parameter or use server scripting to read file and send it with headers, which is what i am doing now, so i’m not looking for a hack.
“no-cache”, “expire” and other headers for whole document doesn’t seem to work on image files or i am doing something wrong.
You have to set the caching headers for the image not the document.
HTML 5 adds nothing to control the caching of external resources.