WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Customize WebOptimizer Cache Busting Algorithm

Open rosdi opened this issue 4 years ago • 0 comments

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.

rosdi avatar Nov 06 '20 15:11 rosdi