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.

How to stop the browsers to cache the counter image?

BROWSERS cache counter image
0
Posted

How to stop the browsers to cache the counter image?

0

If you want the browser to request the server for counter image each time you visit the page, use the parameters cache=F&expires=0. If the browser respects HTTP specification, it will not cache the image. You might want to do this if you’re using the counter as clock to make sure the time is shown correctly each time someone visits the page. The downside to that is that the counter program gets executed each time as browser does not cache the image. Another tick is to change something in the parameter, like change ft or dd, so that the browser will notice the tag is changed and ask the server for the image.

Related Questions

What is your question?

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

Experts123