• Resolved Kanuj

    (@kanuj)


    Dear Plugin Author,

    I tried the plugin and it seems to be great. However, I am still seeing High TTFB when checking using chrome developer tools.

    Chrome’s network tab is showing me around 400 to 500 ms of TTFB.

    Also, the status is not showing CF-Hit but shows as

    server: nginx
    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=600
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled`

    Is the request bypassing the caching and hitting the origin, I have also added the
    location header to the website nginx config file – location ~* \.(xml|xsl)$ { add_header Cache-Control “no-cache, no-store, must-revalidate, max-age=0”; expires -1; }
    location /robots.txt { add_header Cache-Control “no-cache, no-store, must-revalidate, max-age=0”; expires -1; }
    location /wp-cron.php { add_header Cache-Control “no-cache, no-store, must-revalidate, max-age=0”; expires -1; }
    location = /wp-content/wp-cloudflare-super-page-cache/candytech.in/debug.log { access_log off; deny all; }

    Please share any insights that may be helpful. Thanks a lot in advance.

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

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

    (@isaumya)

    Hi,
    As I can see that the plugin is working perfectly on your site and the HTML pages are being cached and served via Cloudflare CDN: https://i.imgur.com/FRjFhSd.png

    I will suggest you to enable the “add browser caching rule” option in the plugin settings and then inside the wp-content/wp-cloudflare-super-page-cache/<domain-name>/ the nginx.conf file created by the plugin, either include that to your main nginx.conf file or copy paste it’s content to your main nginx.conf.

    Anyways, coming to the TTFB it is also dependent from which Cloudflare CDN POP the contents are being served. Like here during my testing it is being served from MRS (France) so, quite naturally the TTFB is around 185ms (Screenshot: https://i.imgur.com/ECethzi.png). The nearest CDN the content gets served from the lower the TTFB is. I can see that you are on Cloudflare Free plan, with Pro plan you will get better routing.

    This is super hard and technical to explain so, I would suggest you give this article a read for a clear understanding of the matter: https://acnam.com/untold-truths-of-cloudflare-cdn/

Viewing 1 replies (of 1 total)

The topic ‘High TTFB’ is closed to new replies.