• Resolved Maurice

    (@emiz0r)


    Maybe a little cryptic topic title however: when using a multilanguage solution like Polylang, local css and js files are still being served from the primary domain. This results in extra unnessecary requests to the primary domain.

    For instance: when the primary domain is test.com and a multilingual website has been created with Polylang at test.eu, the css and js files of the .eu domain will be served from the .com domain.

    When you go to test.eu, the Request URL looks like this: https://test.com/wp-content/litespeed/cssjs/72fc4.css?6876b. Could this be fixed?

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

    (@qtwrk)

    Hi,

    please try add this at top of your wp-config.php , purge all , see how it goes

    
    if (strpos($_SERVER['HTTP_HOST'], "test.eu") !== false){
    define( 'LITESPEED_STATIC_URL', 'https://test.eu/wp-content/litespeed' );
    }
    

    replace both test.eu to your actual domain

    Best regards,

    Thread Starter Maurice

    (@emiz0r)

    Oops, sorry for my late reply ?? But ok… that was quite a quick fix. Works like a charm and thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘LiteSpeed cache of css and js files not being served locally’ is closed to new replies.