• Resolved astroboy89

    (@astroboy89)


    Hi,
    I have tested the cache. In gtmetrix this is showing:

    HTTP/1.1 200 OK
    Date: Sat, 10 Apr 2021 15:30:51 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Set-Cookie: __cfduid=df3e7e03fea874f2d8caaf7c00cbbeeef1618068647; expires=Mon, 10-May-21 15:30:47 GMT; path=/; domain=.gutdecoded.com; HttpOnly; SameSite=Lax
    CF-Ray: 63dd04b67d97e6b4-EWR
    Cache-Control: s-maxage=31536000, max-age=60
    Link: <https://www.gutdecoded.com/wp-json/>; rel="https://api.w.org/", <https://www.gutdecoded.com/wp-json/wp/v2/pages/2>; rel="alternate"; type="application/json", <https://www.gutdecoded.com/>; rel=shortlink
    Set-Cookie: PHPSESSID=d3f0fb08c45ee629d75f1281b01a8ed3; path=/; secure
    Strict-Transport-Security: max-age=31536000; preload
    Vary: Accept-Encoding
    CF-Cache-Status: DYNAMIC
    Alt-Svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
    cf-request-id: 095e01460f0000e6b41384f000000001
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Feature-Policy: autoplay *; fullscreen *; vertical-scroll *
    Permissions-Policy: autoplay=*, fullscreen=*, vertical-scroll=*
    Referrer-Policy: strict-origin-when-cross-origin
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    X-Powered-By: PHP/7.4.11
    X-Turbo-Charged-By: LiteSpeed
    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=60
    X-WP-CF-Super-Cache-Cookies-Bypass: swfpc-feature-not-enabled
    x-wp-cf-super-cache-worker-status: miss
    X-XSS-Protection: 1; mode=block
    Report-To: {"max_age":604800,"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=kt98zqESjSmeJMwHGCsGiwv%2FkdVEaALOWu2EuVmDZ192DjetNUcH8IaZJvha4u2%2FBZiYBohwPSPZkYJwWN%2BRWX%2BKfVq4J3wgNw9N2767R4uYA8RQCIejadX7F6ug5kg%3D"}],"group":"cf-nel"}
    NEL: {"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    X-Uptrends-PortInfo: Local outbound 56063 (R:True) Browser 56060
    Content-Length: 201773
    X-Uptrends-Decompressed: Yes
    X-Uptrends-ContentRetrieval: Using Body content as string. Presumably regular text content.

    Here are my settings under the cache tab of the plugin.

    Here are the htaccess writing for the header:

    # BEGIN HttpHeaders
    # The directives (lines) between "BEGIN HttpHeaders" and "END HttpHeaders" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
    <FilesMatch "\.(php|html)$">
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-XSS-Protection "1; mode=block"
    Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
    Header set Referrer-Policy "strict-origin-when-cross-origin"
    Header set Feature-Policy "autoplay *; fullscreen *; vertical-scroll *"
    Header set Permissions-Policy "autoplay=*, fullscreen=*, vertical-scroll=*"
    </FilesMatch>
    </IfModule>
    # END HttpHeaders
    # BEGIN WP Cloudflare Super Page Cache
    # The directives (lines) between "BEGIN WP Cloudflare Super Page Cache" and "END WP Cloudflare Super Page Cache" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType text/xsl "access plus 0 seconds"
    </IfModule>
    <FilesMatch "\.(xml|xsl)$">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <FilesMatch "robots\.txt">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} ^(.*)?/wp-content/wp-cloudflare-super-page-cache/www.gutdecoded.com/debug.log(.*)$
    RewriteRule ^(.*)$ - [F]
    </IfModule>
    <FilesMatch "wp-cron.php">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    # END WP Cloudflare Super Page Cache

    I have tried loading my website multiple times in incognito mode..Initially it was showing HIT and Workers was disabled then, but when I am testing cache thru your plugin, it was showing the message:

    Page caching is working for static page but seems not working for dynamic pages.
    Error on dynamic page (https://www.gutdecoded.com): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.

    But when I am enabling the Workers option, the test cache is showing it is working fine, but in gtmetrix it is showing as

    cf-cache-status = DYNAMIC

    .

    Please suggest solution.

    • This topic was modified 3 years, 7 months ago by astroboy89.

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    I have just checked your website and it seems that the Cloudflare caching is working perfectly on your website as expected: https://i.imgur.com/mziLkWf.png

    So, I hope you have figured out what was causing the issue and was able to resolve it.

Viewing 1 replies (of 1 total)
  • The topic ‘cf-cache-status = DYNAMIC. Why?’ is closed to new replies.