2017-01-17, 06:43 PM
Right now we put the version number at the end of javascript files to bust the cache on upgrades, however in doing this we can sometimes expose what version someone is (or isn't) running - could we not do it another way?
I was thinking have another cache variable, like the 'encryption_key' value, and put this at the end of the files. Then, at the end of each upgrade, we generate a new key, which would still bust the cache, but also not give away any version number information.
It would mean all the files get cache-busted instead of only the ones that have changed, but considering browsers will expire caches every so often anyway, I don't believe re-caching all the javascript every few months to really be a problem.
I was thinking have another cache variable, like the 'encryption_key' value, and put this at the end of the files. Then, at the end of each upgrade, we generate a new key, which would still bust the cache, but also not give away any version number information.
It would mean all the files get cache-busted instead of only the ones that have changed, but considering browsers will expire caches every so often anyway, I don't believe re-caching all the javascript every few months to really be a problem.