swcfpc query string missing on backend?
-
Hello,
I am testing this plugin and so far the results are amazing, I can’t believe this is even possible. Just had a few questions.
Test site: https://cachetest.anon4.com
1. I am not seeing the swcfpc query string on most pages of the backend. Sometimes it is there but usually not. I noticed that if I click on the “CF Cache” link on the top toolbar of the admin area then it does add the query string as below.
But if I click on the link in Settings > WP Cloudflare Super Cache then I don’t get the query string, as below.
https://cachetest.anon4.com/wp-admin/options-general.php?page=wp-cloudflare-super-page-cache-index
Most other areas of the backend admin do not have the string although it seems to appear randomly sometimes in various places. I can’t seem to find a pattern.
I’m not sure whether is normal or not?
2. When I view the front end site https://cachetest.anon4.com in a browser that is logged in as admin, I am only seeing the admin toolbar if the page is not already in the Cloudflare cache. Once I load the page in an incognito window so it gets cached, then I go back to main browser as a logged in admin and the admin toolbar is now gone because the page is getting served from Cloudflare cache now.
If I click the “visit site” link from the wp-admin backend then it will add the query string and I will always see the toolbar. But if I just access the front end directly by entering the URL then I will only see the toolbar if the page hasn’t been cached yet.
After I purge cache and load the homepage or a specific page in a browser that is logged in as admin, these are the headers I am getting.
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400 cache-control: no-store, no-cache, must-revalidate, max-age=0 cf-cache-status: BYPASS cf-ray: 6741fa154f92f4a6-YVR content-encoding: br content-type: text/html; charset=UTF-8 date: Sun, 25 Jul 2021 02:32:17 GMT expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" expires: Sun, 25 Jul 2021 02:32:17 GMT link: <https://cachetest.anon4.com/wp-json/>; rel="https://api.w.org/" nel: {"report_to":"cf-nel","max_age":604800} pragma: no-cache referrer-policy: no-referrer-when-downgrade report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=jaEuejHPgI0%2FYhQI6x7iFNxHzeeIQKx2TQwqJ6K1Kr4xQXXemeLTa%2FKQ9rzZY%2FKIRkgplkRrPSmrjqdDod8NNbCGHCaXcBtW0CmA52nqEyszJL1xJhkG9PnvsUR%2Bp%2FbRKJSdhrIj"}],"group":"cf-nel","max_age":604800} server: cloudflare strict-transport-security: max-age=31536000 vary: Accept-Encoding x-content-type-options: nosniff x-frame-options: SAMEORIGIN x-wp-cf-super-cache: no-cache x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0 x-xss-protection: 1; mode=blockBut once I have loaded the page in an incognito window, then these are the reponse headers when I refresh the page in the logged in browser (this is when the admin bar disappears).
age: 20 alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400 cache-control: s-maxage=31536000, max-age=60 cf-cache-status: HIT cf-ray: 6742045c08dd137a-YVR content-encoding: br content-type: text/html; charset=UTF-8 date: Sun, 25 Jul 2021 02:39:18 GMT expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" link: <https://cachetest.anon4.com/wp-json/>; rel="https://api.w.org/" nel: {"report_to":"cf-nel","max_age":604800} referrer-policy: no-referrer-when-downgrade report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gQM0XmCrhZPMxQtLcmK43RAWv1JQ0Fc1ZSEXlXhG9bNl0Kdtwr6ImlsUj57sy68YdO1bAsWuC7EsXDR8TL%2BLK%2BeGOe1w%2Fghr4yBPSKyJ0kV6JTCVyYmD7j160QgSY2RjJZQ2Q5ZL"}],"group":"cf-nel","max_age":604800} server: cloudflare strict-transport-security: max-age=31536000 vary: Accept-Encoding x-content-type-options: nosniff x-frame-options: SAMEORIGIN 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-xss-protection: 1; mode=blockAgain, I’m not sure if this is the normal behavior or not.
I am on a self hosted server running NGINX. I noticed that many of the options for this plugin say that this code needs to be added for those options to work.
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/cachetest.anon4.com/debug.log { access_log off; deny all; }Although I didn’t change any options, I added those rules to my custom NGINX config anyway. I am kind of confused about how these 4 rules can be exactly the same no matter which options you are trying to enable. How do these 4 rules relate to all of those different settings for the plugin?
The page I need help with: [log in to see the link]
The topic ‘swcfpc query string missing on backend?’ is closed to new replies.