How to make sure latest image shows up

Ki Kim's picture

Made a slight change in icon sprite and want to make sure new image is loaded without telling every user to refresh his browser? Add a query snippet, which will force browser to download the image again:

background-image: url('sprite.png');

background-image: url('sprite.png?A');

And change the letter to B, C, etc evey time you update the image.


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.