Support » Plugin: WP Cloudflare Super Page Cache » Page caching seems not working for both dynamic and static pages

  • Resolved gasto

    (@gasto)


    Hi team,

    I recently installed this plugin in order to use it with my free Cloudflare account. However, when testing the cache I get the following message:

    Page caching seems not working for both dynamic and static pages.
    
    Error on dynamic page (https://www.minidin.com.ar): Cache status: BYPASS - Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.
    
    Error on static resource (https://www.minidin.com.ar/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html): Unable to find the Cache-Control response header.

    I´ve already checked that these 2 are disabled just in case:
    Overwrite the cache-control header for WordPress’s pages using web server rules
    Strip response cookies on pages that should be cached

    And my .htaccess just in case:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    # BEGIN WP Cloudflare Super Page Cache
    # Las directivas (líneas) entre "BEGIN WP Cloudflare Super Page Cache" y "END WP Cloudflare Super Page Cache" son
    # generadas dinámicamente, y solo deberían ser modificadas mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
    <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.minidin.com.ar/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

    But not sure what could be happening now.
    Thanks in advance.

    • This topic was modified 9 months, 1 week ago by gasto.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page caching seems not working for both dynamic and static pages’ is closed to new replies.