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:

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

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

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

Category: 
Tags: 

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.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.