Customize WebOptimizer Cache Busting Algorithm

739 Views Asked by At

I am using ASP.NET Core Web Optimizer. It has cache busting feature that will append a unique string to the end of script or CSS links.

A sample of the appended string is like this: ....script.js?v=8UnFL4zesLGMnNgeUbnu9OOWly7_ES--Qx-E_tWr2NQ

This works well, unfortunately, our corporate firewall does not like this and block this URL as SQL injection... (ok you may laugh out loud..., go ahead). The firewall is Azure WAF.

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.

0

There are 0 best solutions below