• I see most of traffic is shown as uncached in CF dashboard.
    Are pages really cacheded?
    In Dev Tool of browsers, they’re shown with status 200, not 304 like static resources.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @ashf ,
    please check the response header of the first request or give me the link so I can check it for you

    Thread Starter ashf

    (@ashf)

    Here is the response header

    HTTP/2 200 OK
    date: Thu, 09 Jul 2020 07:02:27 GMT
    content-type: text/html; charset=UTF-8
    link: [REMOVED]
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-max-age=28800, s-maxage=28800, max-age=60
    cache-control: s-max-age=28800, s-maxage=28800, max-age=60
    vary: Accept-Encoding
    cf-cache-status: DYNAMIC
    cf-request-id: 03d3fb0d550000eb710a0ba200000001
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    server: cloudflare
    cf-ray: 5b002df55bd1eb71-LAX
    content-encoding: br
    X-Firefox-Spdy: h2

    • This reply was modified 4 years, 4 months ago by ashf.
    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @ashf ,
    I need to see also the request headers. I think your client send some set-cookie headers and Cloudflare does not add in cache these pages. If yes, try to enable the option to strip out cookies and let me know

    Thread Starter ashf

    (@ashf)

    Here’s the Response & Request(without stripping cookies)

    Response
    alt-svc: h3-27=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-29=”:443″; ma=86400
    cache-control: s-max-age=28800, s-maxage=28800, max-age=60
    cf-cache-status: DYNAMIC
    cf-ray: 5b264a327d7dd346-LAX
    cf-request-id: 03ebccb3870000d346c11ab200000001
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Mon, 13 Jul 2020 22:02:43 GMT
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    link:
    server: cloudflare
    status: 200
    vary: Accept-Encoding
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-max-age=28800, s-maxage=28800, max-age=60

    Request
    :authority:
    :method: GET
    :path: /
    :scheme: https
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    accept-encoding: gzip, deflate, br
    accept-language: en-US,en;q=0.9
    cookie: __cfduid=db44127580229d73b78206071fe881e451593220808; _ga=GA1.2.1559627486.1593220769; _wpfuuid=487e99d9-4be2-4a6f-8a85-fcfc7264a21d
    if-modified-since: Sat, 27 Jun 2020 01:22:01 GMT
    sec-fetch-dest: document
    sec-fetch-mode: navigate
    sec-fetch-site: none
    sec-fetch-user: ?1
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.61

    Thread Starter ashf

    (@ashf)

    Here’s the one with stripping cookies.

    Response
    alt-svc: h3-27=”:443″; ma=86400, h3-28=”:443″; ma=86400, h3-29=”:443″; ma=86400
    cache-control: s-max-age=28800, s-maxage=28800, max-age=60
    cf-cache-status: DYNAMIC
    cf-ray: 5b2652bfdfe1992f-LAX
    cf-request-id: 03ebd20bea0000992fbab94200000001
    content-encoding: br
    content-type: text/html; charset=UTF-8
    date: Mon, 13 Jul 2020 22:08:33 GMT
    expect-ct: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    link:
    server: cloudflare
    status: 200
    vary: Accept-Encoding
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-max-age=28800, s-maxage=28800, max-age=60

    Request
    :authority:
    :method: GET
    :path: /
    :scheme: https
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    accept-encoding: gzip, deflate, br
    accept-language: en-US,en;q=0.9
    cache-control: max-age=0
    cookie: __cfduid=db44127580229d73b78206071fe881e451593220808; _ga=GA1.2.1559627486.1593220769; _wpfuuid=487e99d9-4be2-4a6f-8a85-fcfc7264a21d; _gid=GA1.2.887233547.1594677716; _gat_gtag_UA_45702633_1=1
    sec-fetch-dest: document
    sec-fetch-mode: navigate
    sec-fetch-site: none
    sec-fetch-user: ?1
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 Edg/83.0.478.61

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Ok, the communication between plugin and cloudflare is correct, infact the content of headers cache-control and x-wp-cf-super-cache-cache-control are the same.

    Is the page rule active, right?

    Can you please give me the link in order to test it by myself?

    Thread Starter ashf

    (@ashf)

    Yes page rule to cache everything is active.

    How do I send you the site credential?

    Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    I don’t need credentials, just like the link to the website. You can send it via mail if you want. You find the email address on plugin settings page

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uncached?’ is closed to new replies.