• Resolved djixas

    (@djixas)


    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)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’ll have to exclude the file that holds that code from being optimized djixas.

    hope this helps,
    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got fixed djixas ? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS Error with Autoptimize enabled’ is closed to new replies.