• Resolved nukeguy

    (@nukeguy)


    Page caching seems not working for both dynamic and static pages.

    Error on dynamic page (https://atelierb.ae): Seem that your website is not behind Cloudflare. If you have recently enabled the cache or it is your first test, wait about 30 seconds and try again because the changes take a few seconds for Cloudflare to propagate them on the web. If the error persists, request support for a detailed check.

    Installed, setuped the CDN , butt the test is failing. Help please

    [Moderator note: Please, No bumping].

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

Viewing 15 replies - 16 through 30 (of 35 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Holy smoke. Are you using wp rocket in your site? If so, please turn it off momentarily and replace your htaccess code with just the following:

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    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
    # 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/atelierb.ae/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

    After that inside the plugin settings, purge your Cloudflare cache and let me know so that I can text.

    Thread Starter nukeguy

    (@nukeguy)

    WpRocket , we installed initially before installing your plugin, but we moved from it.

    So i did the steps u mentioned, pasted the new htacess thingie , saved, purged the cache, now BOTH the STATIC and DYNAMIC site has the issue

    “Page caching seems not working for both dynamic and static pages.

    Error on dynamic page (https://atelierb.ae): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin”

    Plugin Contributor iSaumya

    (@isaumya)

    Alright. I just checked yoru site again and still for the main HTML type request the cache-control is no-store, no-cache, must-revalidate. Screenshot: https://i.imgur.com/78JfbXM.png

    Which means this cache control rule is being added via your hosting company at the server level and you need to ask them to remove it from your site.

    Coming to the cache control of your static files, inside the plugin settings > under Cache Tab > you will find a section for add browser caching rule for static files. Enable that option and update your settings and then purge the cache again. This will solve your static file caching issues.

    Thread Starter nukeguy

    (@nukeguy)

    haist….
    option is enabled, yet the same error message
    ====
    Page caching seems not working for both dynamic and static pages.

    Error on the dynamic page (https://atelierb.ae): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.

    ??

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    the Test Cache button will not give you any data about the static files. But as I can see the cache control header on the static files are getting added properly and they are getting cached properly. Screenshots:

    View post on imgur.com

    View post on imgur.com

    View post on imgur.com

    Now the only thing that is left is your main page (that is the first request i.e. the one with content type text/html) being cached.

    For that as I said before:

    Alright. I just checked yoru site again and still for the main HTML type request the cache-control is no-store, no-cache, must-revalidate. Screenshot: https://i.imgur.com/78JfbXM.png

    Which means this cache control rule is being added via your hosting company at the server level and you need to ask them to remove it from your site.

    Contact your hosting company and ask them not to add that cache-control header on your requests so that the plugin can add the cache control as needed.

    Thread Starter nukeguy

    (@nukeguy)

    ok let me check with these guys,
    i just started talking with them and these dodos are only asking IF I WANT TO CLEAR THE CACHE :/

    Plugin Contributor iSaumya

    (@isaumya)

    Tell them that:
    1. You don’t want to use their server site cache so make sure that it is fully off
    2. Ask them to stop adding cache-control header values so that the plugins can add them as needed. They are adding the no-store, no-cache, must-revalidate cache-control header.

    Thread Starter nukeguy

    (@nukeguy)

    their response

    “Exactly.
    So you wish to remove our server cache CDN is it?”

    sigh

    Thread Starter nukeguy

    (@nukeguy)

    while you’re at it, please also suggest a hosting for future sake.

    Thread Starter nukeguy

    (@nukeguy)

    Their humble reply

    “Exactly.
    I have removed that.
    From the server end.

    It will take sometime to reflect changes”

    Thread Starter nukeguy

    (@nukeguy)

    btw the htaccess you shared has these

    “Header set Cache-Control “no-cache, no-store, must-revalidate, max-age=0”

    Plugin Contributor iSaumya

    (@isaumya)

    So you wish to remove our server cache CDN is it?

    – Yes, if that does what we are looking for. All provider calls their service with some name.

    `Exactly.
    I have removed that.
    From the server end.

    It will take sometime to reflect changes`

    – Once the changes have been reflected purge the cache from the plugin settings.

    btw the htaccess you shared has these

    “Header set Cache-Control “no-cache, no-store, must-revalidate, max-age=0”

    – Yes those are for the requests you don’t want to be cached. Like sitemap for example. If you can read the code then it is quite self explanatory, else just ignore it.

    Thread Starter nukeguy

    (@nukeguy)

    – Once the changes have been reflected purge the cache from the plugin settings.

    how would i know the changes have been reflected?

    Plugin Contributor iSaumya

    (@isaumya)

    while you’re at it, please also suggest hosting for future sake.

    – When it comes to suggesting hosting, I can wholeheartedly suggest BigScoots and their WordPress optimized hosting. There is no affiliate links or anything just telling the honest truth. Have been using them for almost 7 years, can’t recommend them enough. They are not only best in terms of hardware but also I have never seen any hosting company with better support than what they provide. Highly recommended.

    how would i know the changes have been reflected?

    – let me check

    Plugin Contributor iSaumya

    (@isaumya)

    I am still seeing the no-store, no-cache, must-revalidate cache-control header. Screenshot: https://i.imgur.com/tZMM6WV.png

    Have you explained your host clearly about it? Ask them when it is disabled. Only they can confirm that.

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Page caching seems not working for both dynamic and static pages.’ is closed to new replies.