• Resolved jason9j

    (@jason9j)


    Hi

    Just found this cache. Amazing level of forethought and great addition to my Lightspeed server sites.

    I feel stupid asking this, but nevertheless:

    When I purge the Lightspeed cache, I want it to force the new file changes (eg. CSS) to be downloaded for an existing visitor when they open the site next. But their browser seems to override it.

    This is frustrating, because when I make design changes and tell someone to look at it, obviously their browser has cached it from the first time they opened it. “It looks the same”, they say. Nothing I purge seems to change this. Often, I can’t even explain what a hard reset (CTRL-F5) is to them.

    What settings can I configure so that I can can force a fresh reload of updated CSS files, etc, to people who already previously loaded the site, so that they can see changes? At the moment, all purge functions seem to have no effect in those cases. Even for me, I have to hard-refresh to see the CSS changes. How do I overcome browser caching with an LS purge? I assume there must be a way, otherwise, what’s the point of a purge if only only affects new users post-purge?

    Would really appreciate help to know what I am missing.

    Thanks.

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

    (@qtwrk)

    Hi,

    Could you please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter jason9j

    (@jason9j)

    Thanks for looking into it: ONKHFJCM.

    Plugin Support qtwrk

    (@qtwrk)

    this is probably a bug , we will investigate further

    meanwhile , as temperorily solution

    please edit file /wp-content/plugins/litespeed-cache/src/optimize.cls.php

    at line 727 , you will find a line

    $qs_hash = substr( md5( $src ), -5 );

    replace it to

    $qs_hash = substr( md5( self::get_option( self::ITEM_TIMESTAMP_PURGE_CSS ) ), -5 );

    save , go to wp-admin , purge all

    Thread Starter jason9j

    (@jason9j)

    Thank you very much, I will try that.

    Do I need to leave the change there permanently? If not, how will I know when to remove it upon the fixing of the bug – will you update this thread?

    Just want to avoid conflicts/issues etc. Thanks again.

    Plugin Support qtwrk

    (@qtwrk)

    no , it’s temp solution , it will be added into code in future version , you can keep an eye on the change log

    you can also just simply disable JS/CSS minify/combine to turn this option off for now

    Thread Starter jason9j

    (@jason9j)

    OK. Thanks for all your help.

    Thread Starter jason9j

    (@jason9j)

    Hi – this issue seems to have returned. Purging anything is ineffectual until I F5 the page. Was this fix included in the update?

    Here is an updated report number: EYTMIBAD.

    Thanks.

    Thread Starter jason9j

    (@jason9j)

    @qtwrk I just tried the solution suggested last time, but it didn’t work. Browser needs to be hard refreshed to see changes, despite purging all with the plugin. This creates issues for return visitors. Can you please let me know why the issue persists and how to fix it so I can keep using this plugin? Much appreciated. Thanks.

    Thread Starter jason9j

    (@jason9j)

    I have disabled this plugin until I can ensure it loads new styling from browsers. Please let me know ASAP.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Very basic question – purge for existing visitor?’ is closed to new replies.