• Resolved tendenzechic

    (@tendenzeshabbychic)


    Hi, I have a problem with the joinchat plugin, after the last update the WhatsApp-shaped icon does not appear correctly (see link) to old visitors.

    I tried clearing the cache, excluding both the css and dedicated js of the plugin but the problem persists. the browser continues to provide the old version of the css and js generating.

    https://prnt.sc/Ew-7ZfHWT2Db

    This only happens for old visitors

    If I disable litespeed the problem doesn’t happen

    I contacted joinchat support and they responded

    It’s very likely that the issue is caused by an optimization plugin that removes the version query string (?ver=...) from the CSS files.

    When the version parameter is stripped, browsers may keep using a cached version of the file, thinking it hasn’t changed — even though it actually has. This would explain why only returning users (with an old cache) are seeing the broken icon.

    You can check your optimization or caching plugin settings and disable the option that removes version parameters from CSS/JS files. That way, returning users will get the updated files after updates like the one from 5.x.x to 6.0.4.

    Can you help me?

    Report Number: MPIHIRCQ

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Support qtwrk

    (@qtwrk)

    function update_joinchat_version( $content ) {
    if ( defined( 'JOINCHAT_VERSION' ) ) {
    $content = str_replace(
    'joinchat.min.js',
    'joinchat.min.js?ver=' . JOINCHAT_VERSION,
    $content
    );
    $content = str_replace(
    'joinchat.min.css',
    'joinchat.min.css?ver=' . JOINCHAT_VERSION,
    $content
    );
    }
    return $content;
    }
    add_filter( 'litespeed_buffer_after', 'update_joinchat_version', 10);

    then you can use this , and don’t forget go to Page Optm -> Tuning CSS -> CSS exclude , and also Page Optm -> Tuning -> JS exclude , add joinchat into both fields

    Thread Starter tendenzechic

    (@tendenzeshabbychic)

    Everything works fine, Thank you very much, for the fast and accurate support!

    I’m pasting this thread onto the joinchat ticket because others also had this problem

    Plugin Support qtwrk

    (@qtwrk)

    function update_joinchat_version( $content ) {

    if (! apply_filters( 'litespeed_conf', 'optm-qs_rm' )) {
    return $content;
    }

    if ( defined( 'JOINCHAT_VERSION' ) ) {
    $content = str_replace(
    'joinchat.min.js',
    'joinchat.min.js?ver=' . JOINCHAT_VERSION,
    $content
    );
    $content = str_replace(
    'joinchat.min.css',
    'joinchat.min.css?ver=' . JOINCHAT_VERSION,
    $content
    );
    }
    return $content;
    }
    add_filter( 'litespeed_buffer_after', 'update_joinchat_version', 10);

    okay , little update , this one added the check if remove query string is enabled , and only add the version number if enabled, to prevent multiple appending

    Thank you @tendenzeshabbychic and @qtwrk!

    We have included it in the latest version of Joinchat.

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Plugin conflict css cache problem’ is closed to new replies.