Folks who use a CDN can append their own cache buster to the .css file, but the background-image entry in the CSS file would still end up being loaded from the browser cache.
This change adds support for a --cachebuster=random parameter, which will append ?<hash> to the background-image: url(...), where <hash> is a randomly generated 40-character hexadecimal string. This would force the new, possibly updated sprite file to be downloaded freshly.
Coverage increased (+0.07%) to 96.99% when pulling 95842dfa09b662b4372ef15dbd353330670616e7 on michaelmoussa:cache-busting into 00f2db80e19fa881c35e2d8075f7a62be1f7570f on aslansky:master.
Folks who use a CDN can append their own cache buster to the
.css
file, but thebackground-image
entry in the CSS file would still end up being loaded from the browser cache.This change adds support for a
--cachebuster=random
parameter, which will append?<hash>
to thebackground-image: url(...)
, where<hash>
is a randomly generated 40-character hexadecimal string. This would force the new, possibly updated sprite file to be downloaded freshly.