IIS 6 caches a static image

Even if the image is resized, overwritten, resized, IIS still serves as a cached copy. I try to upload a webcam image every 15 seconds. The image does this on the server, but when I update the browser with the FROM image of the server, it does not update.

IIS caches the file, apparently for more than 2 minutes. I want it to be in real time. I tried disabling caching everywhere I could think of. Bad luck.

+3
source share
2 answers

Insert your image as follows: <* ImageTag src = "WebCamImage.aspx? Data = {auto-generated guid}" ...> * ImageTag = img (spam filter does not allow me to publish it)

And create a page (WebCamImage.aspx) that transfers the static image file back to the browser, ignoring the "data" request parameter, which is only used to prevent caching (make sure it sets the response content type to "image / jpeg" or something suitable in the header @page).

+2
source

Are you sure that the image is cached on the server, and not on the client. Have you tried to request the same image from another client?

IS-, : http://blogs.msdn.com/david.wang/archive/2005/07/07/HOWTO-Use-Kernel-Response-Cache-with-IIS-6.aspx

, , "" . ? Scavenger - 120 HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\UriScavengerPeriod , , (2- )

, , ( , IIS5)

+1

Source: https://habr.com/ru/post/1714918/


All Articles