Josiah / gulp-cachebust

Generates checksums and renames references to files, useful for cachebusting
30 stars 11 forks source link

Cachebusting of previously busted paths #21

Open ehaeusler opened 8 years ago

ehaeusler commented 8 years ago

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?

mdiaATarinc commented 8 years ago

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

mikevaux commented 7 years ago

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

ehaeusler commented 7 years ago

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