Versioning the CSS files are unfortunately not good enough for Cache busting assets, this would force the browser to fetch the new CSS file itself from the server. But since the browser caches your CSS files and your images as separate items, you will need to bust the images/sprites as well separately.
When the image follows ?
background-image: url(../img/some-sprite.png?version=20130205)
, the browser is forced to make a new request. This is important to notice that it DOES make a new request if the ?
is found.
If you do have some special interest towards it - Read this article to get to know more about Cache busting in LESS
https://www.bennadel.com/blog/2643-cache-busting-css-images-with-less-css.htm
For Cache busting with only Gulp & not editing your SASS
follow this
You could also use numerous npm packages like gulp-cache-buster etc.
If you want cache busting in your SASS you could follow this