Support » Plugin: Super Page Cache for Cloudflare » Add rewrite support to the OLS .htaccess. (browser caching)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter ofmarconi

    (@ofmarconi)

    I said bullshit OLS is mandatory to do manually in the OLS Panel.

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Sorry man but I honestly did not get your question.

    Thread Starter ofmarconi

    (@ofmarconi)

    Hello Saumya,

    I got confused, I thought it was possible to make this option work with OpenLiteSpeed:
    https://i.postimg.cc/gJw1xPtz/image.png

    But it seems that it is only possible with Apache and Ngix.

    Thanks!

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Well, it works on the Litespeed server as well which also uses .htaccess file.

    Thread Starter ofmarconi

    (@ofmarconi)

    I’m in doubt, I think the Open (OLS) version doesn’t work :/

    Well, I’m running on a multisite and continuing the default header:

    cache-control: public, max-age=604800

    https://promovanainternet.com.br/?swcfpc=1

    Plugin Contributor Saumya Majumder

    (@isaumya)

    Not sure about the OLS version. But the normal paid version works fine

    P.S.: why are you still using the old schools cache buster query string? If you are running the latest version of the plugin, go to the Other tab and scroll down. There’s a surprise waiting for you. ๐Ÿ™‚

    Thread Starter ofmarconi

    (@ofmarconi)

    Thanks!

    I didn’t know this was even possible!
    It’s working like a charm.

    Thread Starter ofmarconi

    (@ofmarconi)

    And if it’s going to help more people, I ended up solving the Cache-Control with “Cache Rules” through Cloudflare (Surprised as this function is available for free)

    I was banging my head all day to solve this problem with OLS and with CF I solved it in minutes.

    Now my cache-control headers are 6 months old for CSS, JS, WEBP…

    Using this cache rule:
    (http.request.uri contains "css") or (http.request.uri contains "js")

    Browser TTL = 6 Month

    [EDIT]
    But in this case, CSS and JS necessarily need a version querystring to not deliver anything obsolete.

    • This reply was modified 2 weeks, 5 days ago by ofmarconi.
    Plugin Contributor Saumya Majumder

    (@isaumya)

    The approach you have taken is not right. I would rather recommend you to use the Transform Rules. Inside you CF Dashboard go to Rules > Transform Rules > HTTP Response Header Modification.

    There create a rule to serve the proper Cache Control header for your static files.

    This is a more appropriate implementation. You can use the same tools to add Link headers to use the Early Hint features.

    Hope this helps ๐Ÿ™‚

    Thread Starter ofmarconi

    (@ofmarconi)

    Thanks my friend, I will do that!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.