0

Everytime I update new image like 'index.gif' to website without changing image's name, the user could not see the update until they fresh the browser by F5 to clean the image cache.

It is same as updating css, but I usually change css link version like:

<link href="index.css?ver=xxxxxx" rel="stylesheet" type="text/css" />

Because there is only one reference to this css, so I can change it easily. In contrast, there are so many refers to one image, so I'm frustrated for changing all the links to new image.

So is there any easy way to solve my problem?

William_He
  • 327
  • 2
  • 4
  • 11

1 Answers1

0

You can do the same thing with image files that you're doing with your css. Have you tried that?

Another option, which I don't recommend, is telling your web server to stop sending cache headers with image files.

Jimmy Baker
  • 2,935
  • 1
  • 21
  • 24