3 ms·
You don't need to use a checksum, just add some irrelevant URL parameter like "?sitever=X" to all asset URLs, then in the packaging/build script just replace it
by icebraining 9y ago
You don't need to use a checksum, just add some irrelevant URL parameter like "?sitever=X" to all asset URLs, then in the packaging/build script just replace it with the current site version:
find ./ -type f -exec sed -i s/?sitever=X/?sitever=$VERSION/g' {} \;
- JoshTriplett 9y agoThat will unnecessarily break caching of resources that haven't changed between versions. (Hence, hashing the actual content.)
- icebraining 9y agoI suppose if you deploy a lot, that can be wasteful.