gulp-cachebust
gulp-cachebust copied to clipboard
Cachebusting of previously busted paths
Is it possible to cachebust without copying the template where everything is included? So if there is an already busted resource like
<link rel="stylesheet" href="/styles/main.7f97a32a.css">
it would not only search for /styles/main.css to bust, but those already bustet ones as well?
+1. This functionality would be really helpful when the asset was previously cache busted in the html but has changed now and need to be cache busted again.
+1. For environments which don't have a separate src/
/ dist/
folders for templates, this currently won't work because the references are never updated to match the new hashes.
As a workaround, I used gulp-replace prior to cachebusting, to revert the filenames to their original state :)