Browser GET request returning old images <p>I'm trying to use a GET request to retrieve an image from a server. The image is constantly changing, so I want to grab the image a few times every second (with the intent of displaying the images and imitating video eventually). However, there's something going wrong with the GET request. No matter how rapidly I try to GET the image (tried every 1s, 100ms, etc), it only returns a new image every 5 seconds. It's acting like there's a cached image somewhere and it's only updating the cache every 5 seconds, returning old, duplicate images all other times.</p> <p>I've done the following to try to isolate the problem:</p> <ul> <li>Verified that the images on the server side are actually being updated every 100ms or so, meaning the webpage is indeed returning old images for most of its GET requests,</li> <li>Turned off the browser cache both through developer options and by running the webpage in incognito mode. This is Chrome by the way. </li> <li>Turned off keepalive in the Tomcat server by setting maxKeepAliveRequests = 1 (disabled) in the configuration file.</li> </ul> <p>And yet it is still only actually retrieving new images every 5 seconds.</p> <pre><code>Example Request Headers: Cache-Control: no-cache Connection: keep-alive &lt;-- Could this be the problem? Pragma: no-cache Example Response Headers: Cache-Control: no-cache Cache-Control: no-store Connection: close Pragma: no-cache Server: Apache-Coyote/1.1 </code></pre> <p>My query (executed after a time delay every time image is loaded):</p> <pre><code>document.getElementById("videoDisplay").src = filename + "?random="+(new Date()).getTime(); </code></pre>