Open chopki opened 2 years ago
I diffed https://github.com/teamcfadvance/cfstatic/blob/master/org/cfstatic/CfStatic.cfc with our copy of the file. The only thing we changed for CF2021 was this line:
https://github.com/teamcfadvance/cfstatic/blob/master/org/cfstatic/CfStatic.cfc#L211
our timeout is set to 100
instead of 1
, but unfortunately I don't really know why this change was made. Could have been because of the same error you are experiencing.
preface - looking for a fix and will pop a pull request if i can nail down whats going on, but thought best to post in case anyone else had come across or had a better working knowledge of cfstatic and could pin it down quicker.
Issue - I have two directories
assets\css\core
andassets\js\core
that both contain lots of files that are set to minify & concatenate down to one file that has been working like a dream forever. Since upgrading to CF 2021 (seems compatible otherwise) it seems on the first load of the application everything works fine, but on the second page load the hash for the JS file gets set to the same as the hash for the CSS file.e.g output initial load ( hashes 20220826055440 & 20220831091516 )
second load ( single hash 20220826055440 )
This only seems to happen on the development and staging environments where we set the
checkForUpdates
parameter totrue
initialisation:
Other setup details - Windows / CF 2021 Enterprise