rickstar123
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Page Cache] Fallback page cache optionThanks iSaumya.
Hi Saumya,
Thank you for your reply.
I’ve checked that Perfmatters instant page settings was disabled. I then turned prefetch on the viewport and hover option off in SFC and purged cache. Then I turned prefetch on the viewport and hover option on again in SFC and purged cache again. Hopefully this has worked.
The other setting I enabled was “Add browser caching rules for static assets” as per your suggestion.
Cheers.
Hi Saumya,
I’m happy to report that I’ve found out the issue, which was code in the htaccess file: Header set Cache-Control “private”.
This was added recently when I was troubleshooting an issue with Siteground.
Sorry for misunderstanding.
Everything appears to be working fine now according to this response header report:
Response
:status: 200
Content-Encoding: gzip
Link: https://www.kidsbookexplorer.com/wp-json/; rel="https://api.w.org/"
Cache-Control: no-store, no-cache, must-revalidate, max-age=0
Pragma: no-cache
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ASc8QwKl%2BES%2ByEBU8Uct6OQeBBK2Nv5tjihBPBBXoMFBu9zs6B0wZJmyA3w%2BPdcAtW0i56pKioe3vh9voXiQNz7e88ZXLNUsFpqX5YBDlw9VTJgzfQ9ENNAfhlVXfRu4FXUJ8ri5y6%2BVKGQ%3D"}],"group":"cf-nel","max_age":604800}
Vary: Accept-Encoding
Date: Tue, 16 May 2023 09:32:15 GMT
Expires: Tue, 16 May 2023 09:32:14 GMT
Content-Type: text/html; charset=UTF-8
x-proxy-cache: BYPASS
host-header: 6b7412fb82ca5edfd0917e3957f05d89
Server: cloudflare
x-wp-cf-super-cache: no-cache
x-proxy-cache-info: 0 NC:200000 UP:SKIP_CACHE_ALREADY_EXPIRED
Alt-Svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
x-httpd-modphp: 1
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0
cf-cache-status: DYNAMIC
cf-ray: 7c829cbf6af06a4b-SYDCould you please check it and let me know if everything is looking like it should be?
Thank you.
Hi Saumya,
I deleted and reinstalled SFC as suggested and had the same result with cache-control = private, but after about 3 or 4 days, it just happened to work and when I tested the cache in SFC it gave back no errors.
I then decided to re-add the page rules to Cloudflare as per your implementation guide and re-enable “Remove Cache Buster Query Parameter”.
After I did that, it went back to the same error:
Page caching seems not working for both dynamic and static pages.
Error on dynamic page (https://www.kidsbookexplorer.com): 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.kidsbookexplorer.com/wp-content/modules/wp-cloudflare-page-cache/assets/testcache.html): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.
Please check if the page caching is working by yourself by surfing the website in incognito mode ’cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header?cf-cache-status: HIT, the page caching is working well.
I then, disabled the page rules in CF and deleted SFC and reinstalled it to reverse this error, but I still have the same result now a number of days later.
Do you have any suggestions?
Hi Saumya,
Thank you for your reply.
I’m at a loss to understand why that might be. There has been no caching plugins added to my site since the last time SPC was working. I have no Siteground Caching activated on the server side and the SG Optimiser is deleted.
Would any of the settings Brian suggested in his Cloudflare Optimisation article conflict with SFC?
Can you offer any suggestions as to how I should troubleshoot this?
Hi Saumya,
I’m sorry of the slow response, but was holidaying overseas from the day after your reply till now.
I implemented all of the above recommendations except for enabling “Smart Tiered Cache” in Cloudflare as I’d prefer to not pay the additional $5 monthly charge.
I also tweaked my Cloudflare settings according to Brian Jacksons recommendations: https://perfmatters.io/docs/cloudflare-wordpress-settings/
However, I had an issue with content not updating on my site which I seem to have pin-pointed to the Browser Cache TTL setting I changed in Cloudflare when I changed that setting from “respect existing headers” to “1 month”. I have since changed back to “respect existing headers” and the content is updating fine.
However, in the process of trouble shooting this issue, I disabled SPC and paused Cloudflare. Both are now active again, but when I test cache in SPC I get the following error:
Page caching seems not working for both dynamic and static pages.
Error on dynamic page (https://www.kidsbookexplorer.com): 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.kidsbookexplorer.com/wp-content/modules/wp-cloudflare-page-cache/assets/testcache.html): Cache status: BYPASS – Cloudflare has been instructed to not cache this asset. It has been served directly from the origin.
Please check if the page caching is working by yourself by surfing the website in incognito mode ’cause sometimes Cloudflare bypass the cache for cURL requests. Reload a page two or three times. If you see the response header?cf-cache-status: HIT, the page caching is working well
Do you have any idea why this might be?.
Hi Saumya,
I retested the cache in your plugin today and am pleased to report that it returned “Page caching is working properly.” I also conducted speed tests with GTmetrix and am very happy with the results. However, I noticed a medium impact warning related to “Serve static assets with an efficient cache policy” (screenshot: https://www.dropbox.com/t/KiGTC9cBMJ2h8oWE). The Cache TTL appears to be set to “none.” Is this something I need to adjust in the Super Page Cache settings?
Additionally, my Header Response displays the following line: “x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled.” Is this a feature I should enable?
I’m not particularly knowledgeable about caching, so I’m wondering if there’s a “best practices” tutorial for your plugin to help me optimize the settings.
I’m currently using Perfmatters, and Brian Jackson has been helpful in setting it up. In fact, it was he who recommended trying your plugin. I would greatly appreciate your input if you have any suggestions regarding potential conflicts with Siteground’s SG Optimizer or any other tips to improve my settings within your plugin.
Thank you for your assistance.
Thanks Saumya, I understand. I’ll check again tomorrow then. Also, I’ve disabled the Siteground Server Side Caching I had previously. Should I also disable the SG Optimizer Dynamic Caching, File-Based Caching and Memcached?
I changed DNS yesterday. According to this DNS lookup, it appears that Cloudflare is the owner.
A Records : [0] Name : kidsbookexplorer.com | ttl: 300 | ip: 104.21.3.111 [1] Name : kidsbookexplorer.com | ttl: 300 | ip: 172.67.130.151 ------------------ AAAA Records : [0] Name : kidsbookexplorer.com | ttl: 300 | ip: 2606:4700:3033::6815:36f [1] Name : kidsbookexplorer.com | ttl: 300 | ip: 2606:4700:3031::ac43:8297 ------------------ CNAME Records: None ------------------ MX Records : [0] Name : kidsbookexplorer.com | ttl: 300 | ip: 34.149.79.66 | mx: mx10.antispam.mailspamprotection.com. | preference: 10 [1] Name : kidsbookexplorer.com | ttl: 300 | ip: 34.120.156.61 | mx: mx20.antispam.mailspamprotection.com. | preference: 20 [2] Name : kidsbookexplorer.com | ttl: 300 | ip: 34.111.121.216 | mx: mx30.antispam.mailspamprotection.com. | preference: 30 ------------------ NS Records : [0] Name : kidsbookexplorer.com | ttl: 21600 | value: arely.ns.cloudflare.com. [1] Name : kidsbookexplorer.com | ttl: 21600 | value: duke.ns.cloudflare.com. ------------------ PTR Records: None ------------------ SRV Records: None ------------------ SOA Records : [0] Name : kidsbookexplorer.com | ttl: 3600 | mname: arely.ns.cloudflare.com. | rname: dns.cloudflare.com. ------------------ TXT Records : [0] Name : kidsbookexplorer.com | ttl: "300" | value: "google-site-verification=5IYYP4YLYRQyoAqrAenb1994subOPN1FC62Lht0afAY" [1] Name : kidsbookexplorer.com | ttl: "300" | value: "google-site-verification=gFCSoGiOsJf9NPXnt4ON11O_v-rXU7ID5V7tD9ow6y8" [2] Name : kidsbookexplorer.com | ttl: "300" | value: "v=spf1 +a +mx +ip4:35.213.213.220 include:_spf.mailspamprotection.com ~all" ------------------ CAA Records: None ------------------ DS Records: None ------------------ DNSKEY Records: None ------------------
Here’s the screenshot you requested.
I can confirm that the orange cloud is enabled for kisbookexplorer.com in the DNS records.
Hi Saumya, Thank you for your reply. I’m sorry I don’t know what I’m supposed to be disabling inside the my Cloudflare DNS. Do you mean disabling the proxy status for kidsbookexplorer.com?
No, that didn’t work. It works if I change “.uagb-block-dc2f5651” to the same block number for a specific post, but it doesn’t translate to all TOC in my blog. I don’t understand why I need to insert CSS though when the Title option should be available in the block settings?
I have uninstalled the Spectra plugin and reinstalled but I still don’t have title alignment in the table of content block settings. What else should I try?
If I uninstall and delete the Spectra plugin and then re-install it, does that mean I have to go back to every post and add the TOC in again?