gulp-cachebust icon indicating copy to clipboard operation
gulp-cachebust copied to clipboard

Cachebusting of previously busted paths

Open ehaeusler opened this issue 8 years ago • 3 comments

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?

ehaeusler avatar May 04 '16 10:05 ehaeusler

+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.

mdiaATarinc avatar May 09 '16 19:05 mdiaATarinc

+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.

mikevaux avatar Oct 18 '16 11:10 mikevaux

As a workaround, I used gulp-replace prior to cachebusting, to revert the filenames to their original state :)

ehaeusler avatar Oct 18 '16 12:10 ehaeusler