Dave Merrill
07/19/2024, 3:55 PMwebsolete
07/19/2024, 4:02 PMseancorfield
build.cfm
file during deployment that contains the timestamp of the build itself. It contains <cfset buildStamp = "<yyyy-mm-dd_hh-mm-ss>">
essentially, and then we use ?s=#buildStamp#
on URLs.
That forces a (client) refresh and CDN update for each "build" which ensures a consistent fetch of all related files (CSS, JS, etc).seancorfield
websolete
07/19/2024, 4:04 PMapplication.cachebuster = getTickCount();
essentiallyjclausen
07/19/2024, 4:23 PMhref
location. Then, on every production deploy, a file with a unique hash is generated, and your HTML source serves that specific hashed file.
Even if you don’t use Coldbox, the coldbox-elixir
NPM module can do all of this for you automatically. You can just grab this method and its helpers and put it in your code to handle the manifest file.
I can point you to several working examples of this if you are interestedseancorfield
Dave Merrill
07/19/2024, 5:53 PM