rafaucau Wow that's fantastic, do you think there would be a problem with OpenLiteSpeed? for some reason there are some LSCache plugins like PrestaShop's that don't work with the Open version only with Enterprise (https://www.litespeedtech.com/products/litespeed-web-server/editions).

If it works, it would be great if someone could make a guide on how to install Flarum with OpenLiteSpeed, I've never managed to get it working but this gives me a lot of motivation.

    ihhddis I haven't tested it, but it should work.
    Some plugins may not work because OpenLiteSpeed doesn't support ESI, but in this extension I wasn't able to use that to update CSRF on Flarum anyway. So this extension updates itself CSRF via API request instead of using ESI.

    rafaucau

    I tested without logging in. same value as your site.

    alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
    cache-control: public, max-age=0
    cf-cache-status: DYNAMIC
    cf-ray: 6af676207e4e4c5c-AMS
    content-encoding: br
    content-type: text/html; charset=utf-8
    date: Wed, 17 Nov 2021 05:11:58 GMT
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires: Wed, 17 Nov 2021 05:11:45 GMT
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    referrer-policy: same-origin
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=rDTd4iaPyYYYQnJ1STz2mYJq9s4hvRVpKjweqtKnvFlcoxs%2BD44kY%2BxdhvfHOEY8tKvoP3VdM0YXemyQLXo9t3jwUh%2Btcr%2F5P5NaR5x6cMkcNAB6F%2BQT4FDD3lO8"}],"group":"cf-nel","max_age":604800}
    server: cloudflare
    vary: Accept-Encoding
    x-content-type-options: nosniff
    x-csrf-token: KisFOl6y7cZdfYFU3KrGWoWy5TiXLKgm0Irjah8v
    x-litespeed-cache: hit
    x-powered-by: Flarum
    x-turbo-charged-by: LiteSpeed

      Working nicely here, solid page speed improvements, not magical or madly dramatic but definitely solid 🙂

      Problem 1
      - acpl/flarum-lscache[0.0.1, ..., 0.0.3] require guzzlehttp/guzzle 7.4 -> found guzzlehttp/guzzle[7.4.0] but the package is fixed to 7.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
      - Root composer.json requires acpl/flarum-lscache * -> satisfiable by acpl/flarum-lscache[0.0.1, 0.0.3].

      Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

        xasharma try composer require acpl/flarum-lscache -W -a or composer update -W -a before installing this extension

        DursunCan x-litespeed-cache: hit

        That means the cache is working

          rafaucau

          BTW. currently LSCache is working for non-logged in users. Check as a guest. I am planning to add cache for logged in users, but it will be difficult and time consuming.

          Is LSCache important for logged in users?

            DursunCan Just a better user experience when pages load faster.

            Additionally, if you have a lot of logged in users, the cache will reduce the load on the server which reduces hosting costs.

            0.0.4

            • Fixed an issue with caching the logout page

            Please update as soon as possible as this is a serious issue. After update you have to clear LSCache in admin panel or using command

              xasharma You should fix the forum problem first. If you uninstalled that extension and removed the code from the .htaccess then something else must be causing the problem

                rafaucau When i uninstalled it from Flarum admin panel it caused this problem, then i thought complete removal will solve this problem.