Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The image is reloaded, but does not change. How do I prevent the images from caching?

caching image images reloaded
0
Posted

The image is reloaded, but does not change. How do I prevent the images from caching?

0

Most web browsers and proxy servers will cache a JPEG image. Thus, the image sometimes will not change even after being reloaded by the browser. To prevent caching, you should configure the server to send the following headers: Expires: 0 Pragma: no-cache If you can not configure the web server to automatically send these headers with the image, you can use a CGI. We have included a Perl CGI and an Active Server Page on the Medusa CD which will send the headers with the image. However, it is recommended to configure the web server (when possible) to save on system resources.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123