Yes you can put a querystring onto an image name to ensure any caching is updated whenever the image changes even if the image name itself stays the same. .e.g. src="image.jpg?123"
Some set the querystring to the image modified date/time, which is easy to automate if using an appropriate scripting/programming language, to ensure it's not missed when making any changes.
This way you don't have to bother worrying about caching and trying to avoid it with 'no cache' approaches that may or may not be used correctly either when setting it (as standards change) or by anything in the chain between the host server and the client browser.
Keeps it simple.
Some set the querystring to the image modified date/time, which is easy to automate if using an appropriate scripting/programming language, to ensure it's not missed when making any changes.
This way you don't have to bother worrying about caching and trying to avoid it with 'no cache' approaches that may or may not be used correctly either when setting it (as standards change) or by anything in the chain between the host server and the client browser.
Keeps it simple.
Comment