I use prototype on the client side.
I need to change picture on the page without reloading. So in my .js file I change the src of a picture and it works ok. But I also need that if the same image requested, it would alse request the server to know if this image has changed, and reload if needed. Server sends last-modified header, and if gets if-modified-Since, then checks, and either sends new image or 304 Not Modified response.
When the image is requested the first time, server replies with an image. Second time gives 304 Not Modified. But when I try to reload 3-d time, it won't trigger any request at all. And the same cached image is shown.
Is it some feature of prototype, that it won't request, if before NOT MODIFIED repsonse was sent. Or any other reasons?
Is there any way to force it to make a request?
Tested in Firefox and Chrome