• Resolved pacman94

    (@pacman94)


    Hi, I have a strange problem with my site, the homepage give me HIT but posts not, you can check (I don't have other caching plugins), from mobile site is blazing fast so caching is working but from PC not:

    https://www.gaeta.it/festival-internazionale-propatria-la-14a-edizione-si-svolgera-nel-2024-in-sei-paesi

    as you can see from PC the max-age is 0 also if I manually forced browser cache TTL in cloudflare to 120 secs and edge cache TTL to 1 year, in fact using external tools like https://dnschecker.org/server-headers-check.php the response header is correct.

    WRONG RESPONDE HEADER:



    alt-svc:

    h3=":443"; ma=86400

    cache-control:

    max-age=0, no-cache, s-maxage=31536000

    content-encoding:

    br

    content-security-policy:

    upgrade-insecure-requests;

    content-type:

    text/html; charset=UTF-8

    date:

    Tue, 17 Sep 2024 14:38:42 GMT

    link:

    <https://www.gaeta.it/wp-json/>; rel="https://api.w.org/"

    link:

    <https://www.gaeta.it/wp-json/wp/v2/posts/85598>; rel="alternate"; title="JSON"; type="application/json"

    link:

    <https://www.gaeta.it/?p=85598>; rel=shortlink

    referrer-policy:

    same-origin

    server:

    nginx

    x-content-type-options:

    nosniff

    x-frame-options:

    SAMEORIGIN

    x-page-speed:

    1

    x-permitted-cross-domain-policies:

    master-only

    x-pingback:

    https://www.gaeta.it/xmlrpc.php

    x-wp-cf-super-cache:

    cache

    x-wp-cf-super-cache-active:

    1

    x-wp-cf-super-cache-cache-control:

    s-maxage=31536000, max-age=120

    x-wp-cf-super-cache-cookies-bypass:

    swfpc-feature-not-enabled

    x-xss-protection:

    1; mode=block

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pacman94

    (@pacman94)

    from mobile and using external tools the response header is correct, very strange.

    I also enabled these features to maximize HIT ratio:
    -Ignore query string
    -Smart Tiered Caching Topology
    -forced browser TTL and edge TTL so that both headers match

    Thread Starter pacman94

    (@pacman94)

    I also enabled this to maximize HIT ratio:

    Serve stale content while revalidating

    (Optional)

    Define if Cloudflare should serve stale content while getting the latest content from the origin. Learn moreDo not serve stale content while updating

    If on, Cloudflare will not serve stale content while getting the latest content from the origin.

    Plugin Support Ionut Neagu

    (@ionutn)

    Hey,

    I don’t see Super Page Cache active anymore in the headers, so it’s hard to say what’s wrong, I see you’re using multiple solutions, right now I get cache-control : no-cache and don’t know what plugin did that.

    I suggest you deactivate all the other plugin and custom CF rules and use only Super Page Cache to see where this is coming from.

    We also plan on the next version to add a reason on why a page was bypassed and what setting caused that.

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