• Resolved marcoqwerty

    (@marcoqwerty)


    Hello!

    I have some doubt if the litespeed cache its ok or not, headers made me extra confusion then i decided to ask a help there.

    Actually im usinf Litespeed (on litespeed server) and Cloudflare.

    As you can see :

    CF-Cache-Status: HIT but x-litespeed-cache: miss

    HTTP/1.1 200 OK
    Date: Wed, 19 Jul 2023 13:24:13 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    CF-Ray: 7e93488d5a5496db-SJC
    CF-Cache-Status: HIT
    Cache-Control: no-store, no-cache, must-revalidate
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Link: <https://www.dammos.com/wp-json/>;
            rel="https://api.w.org/",
            <https://www.dammos.com/wp-json/wp/v2/pages/70701>;
            rel="alternate"; type="application/json",
            <https://www.dammos.com/>; rel=shortlink
    Strict-Transport-Security: max-age=63072000; includeSubDomains
    Vary: Accept-Encoding
    cf-apo-via: tcache
    pragma: no-cache
    x-content-type-options: nosniff
    x-dns-prefetch-control: on
    x-frame-options: SAMEORIGIN
    x-litespeed-cache: miss
    x-litespeed-cache-control: public,max-age=604800
    x-litespeed-tag: 40e_HTTP.200,40e_front,40e_URL.6666cd76f96956469e7be39d750c
            c7d9,40e_F,40e_Po.70701,40e_PGS,40e_,40e_MIN.2e51422
            bb9ebd656ded9f7898b61cb2c.css,40e_MIN.901779cec1e9c1
            b5a930d0b99e57558f.js
    x-powered-by: PHP/8.1.18
    x-turbo-charged-by: LiteSpeed
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudfl
            are.com\/report\/v3?s=3engiiuLQjEAKHdtgOW2mnZBLy%2FjC70p3%
            2FVnYsCvw09Yqef9uPk2I9KqM5UzoHo%2FOzoosk%2FmzrkIWAdlxlzz0x
            209xn%2BQtiY0Zwo8QGMBrpZy5XQ348Ohr%2BWfh8PXcoVRcOFOGwnPZCC
            w8MW"}],"group":"cf-
            nel","max_age":604800}
    NEL: {"success_fraction":0,"report_to":"cf-
            nel","max_age":604800}
    Server: cloudflare
    alt-svc: h3=":443"; ma=86400

    Also i continue to get the

    pragma: no-cache

    My Report number is VXKRAOKB , please what setting im missing to made work correctly Litespedd and Cloudflare together?

    Thank you for any kind of help!

    The page I need help with: [log in to see the link]

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

    (@qtwrk)

    once you have cf-cache hit , it will cache the current headers as well , by that saying, even after this request the litespeed cache is hit , it will still display cache miss

    Pragma is kind of ancient header and is Deprecated , but it works as cache-control: no-cache , this is expected for the main request over a dynamic page

    if you are using CF cache with LSCWP, then certain options like Guest Mode , Webp replacement , mobile cache , JS minify/combine , CSS minify/combine , need to be disabled

    Thread Starter marcoqwerty

    (@marcoqwerty)

    Hello! thank you for your reply.

    Honestly i made a re-check with Google inspect and looks like Litespeed cache has hit, but Cloudflare’s cache was bypassed per the Cache-Control header.

    Idk why the result are so different, in any case what is the ideal setup? i have to use CF or LTC ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Understand Cache Hit and MISS and Pragma’ is closed to new replies.