• Resolved yacenty

    (@yacenty)


    We have an error in amp
    Google show us such an error
    <script data-no-optimize=”1″>var litespeed_vary=document.cookie.replace(/(?:(?:^|.*;\s*)_lscache_vary\s*\=\s*([^;]*).*$)|^.*$/,”$1″);litespeed_vary||fetch(“https://sadowniczeabc.pl/wp-content/plugins/litespeed-cache/guest.vary.php&#8221;,{method:”POST”,cache:”no-cache”,redirect:”follow”}).then(e=>e.json()).then(e=>{console.log(e),e.hasOwnProperty(“reload”)&&”yes”==e.reload&&window.location.reload(!0)});</script></body></html>

    Can You help us with fixing it?
    Regards
    Jacek

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    a quick workaround is add following code into wp-config.php , next line after <?php

    if (strpos($_SERVER['REQUEST_URI'], "amp") !== false){
    define( 'LITESPEED_DISABLE_ALL', true );
    }
    

    I will talk with our devs for a more permanent solution

    Best regards,

    Thread Starter yacenty

    (@yacenty)

    ok, seems fine.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP error after enabling LSCache’ is closed to new replies.