JS Error with Autoptimize enabled
-
Hi, have only “optimize js” first checkbox, nothing else, I get this error in console, no errors before when using fastest cache, php 8, latest wp, MISC options are all checked
Uncaught SyntaxError: Invalid regular expression flags (at autoptimize_single_beed5475599e22e786eb90e03e04234f.js:110:124)
The line:
if(this.method===’GET’||this.method===’HEAD’){if(options.cache===’no-store’||options.cache===’no-cache’){var reParamSearch=/([?&])=[^&]*/if(reParamSearch.test(this.url)){this.url=this.url.replace(reParamSearch,’$1=’+new Date().getTime())}else{var reQueryString=/\?/this.url+=(reQueryString.test(this.url)?’&’:’?’)+’_=’+new Date().getTime()}}}}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘JS Error with Autoptimize enabled’ is closed to new replies.