WebOptimizer
WebOptimizer copied to clipboard
Customize WebOptimizer Cache Busting Algorithm
The cache busting feature is a great (and essential) feature.
Unfortunately, our corporate firewall does not like some of the generated strings..., sometimes we got unlucky enough and the firewall blocks the generated URL as SQL injection... (ok you may laugh out loud..., go ahead). The firewall is Azure WAF.
A sample of the appended string is like this: ....script.js?v=8UnFL4zesLGMnNgeUbnu9OOWly7_ES--Qx-E_tWr2NQ
I know better than fighting the bureaucracy in my company, so is there any way I could customize the algorithm to sidestep this issue?
I imagine, for our intent and purpose, using DateTime.Ticks
would be enough, that would also appease the firewall.
I also asked this same question here: https://stackoverflow.com/questions/64717023/customize-weboptimizer-cache-busting-algorithm
I tried to subclass WebOptimizer.Asset
but unfortunately, that class is internal
.