[DigitalPoint] App for Cloudflare®

[DigitalPoint] App for Cloudflare® 1.8.2

No permission to download
turns out it did get enabled! (not yet ready to pay 20 dollars to get this issue investigated by them lol)

i suppose the only way to find out if it's working is to wait for new content and then load pages that should show those updated posts?
 
AdminCP > Setup > Cloudflare > Rules

Any ideas what causing this error...

Code:
Client error: GET https://api.cloudflare.com/client/v4/zones/*****/rulesets/phases/http_request_cache_settings/entrypoint resulted in
a 404 Not Found response: { "result": null, "success": false, "errors": [ { "message": "could not find entrypoint ruleset in the h (truncated...) /
{"result":null,"success":false,"errors":[{"message":"could not find entrypoint ruleset in the http_request_cache_settings phase"}],"messages"
:null}
 
turns out it did get enabled! (not yet ready to pay 20 dollars to get this issue investigated by them lol)

i suppose the only way to find out if it's working is to wait for new content and then load pages that should show those updated posts?
It only applies to guests... so if you click around your site in an Incognito window (not as a logged in user), and you have DevTools open, you can look at the response headers in the HTTP request and look for the cf-cache-status header. It will show "HIT" if it's being served from cache, or "MISS" if it wants to serve it from cache, but it's not cached currently (a subsequent request will turn into HIT after a MISS).

You can also check with curl or something like that/

twin1:~ # curl -I https://iolabs.io
HTTP/2 200
date: Thu, 12 Jan 2023 19:45:03 GMT
content-type: text/html; charset=utf-8
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
last-modified: Thu, 12 Jan 2023 19:06:30 GMT
expires: Fri, 13 Jan 2023 01:06:30 GMT
cache-control: max-age=1,s-maxage=21600
vary: Accept-Encoding
cf-cache-status: HIT
age: 2281

server: cloudflare
cf-ray: 788863eafa5d7ee3-LAX
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400[/code]
 
AdminCP > Setup > Cloudflare > Rules

Any ideas what causing this error...

Code:
Client error: GET https://api.cloudflare.com/client/v4/zones/*****/rulesets/phases/http_request_cache_settings/entrypoint resulted in
a 404 Not Found response: { "result": null, "success": false, "errors": [ { "message": "could not find entrypoint ruleset in the h (truncated...) /
{"result":null,"success":false,"errors":[{"message":"could not find entrypoint ruleset in the http_request_cache_settings phase"}],"messages"
:null}
If you look in your normal Cloudflare dashboard, do Cache Rules show up for you in there (under Caching settings)?

I have seen it on occasion and haven't been able to figure out why it happens for some and not others. One thing to try is add any random Cache Rule in the normal dashboard and then delete it. That's seemed to clear it up for people going forward. It's been tough to troubleshoot on this end because it tends to clear itself up and I also don't have a Cloudflare account/zone it's happening on.
 
so i checked cache rules. i do not see edge ttl or browser ttl enabled for Cache XenForo guest pages and Cache XenForo CSS but they are configured for Cache XenForo image proxy. all these three are setup by the addon. is this how it is supposed to be? or guest and css rules also need image proxy type config for ttls?
 
so i checked cache rules. i do not see edge ttl or browser ttl enabled for Cache XenForo guest pages and Cache XenForo CSS but they are configured for Cache XenForo image proxy. all these three are setup by the addon. is this how it is supposed to be? or guest and css rules also need image proxy type config for ttls?
Yep, that's how it's supposed to be. The reason is for guest pages and CSS, you are just telling Cloudflare to respect the existing headers coming down from XenForo. Image proxy you are telling it to NOT respect the existing headers and override them.
 
cool. i can see hit on the network tab. kind of fascinating. i imagine this should negate the need for xenforo's own guest caching. i did stop using it a while ago. now wondering if i should stop using redis caching as well as i probably never got it working properly in the first place.
 
If you look in your normal Cloudflare dashboard, do Cache Rules show up for you in there (under Caching settings)?

I have seen it on occasion and haven't been able to figure out why it happens for some and not others. One thing to try is add any random Cache Rule in the normal dashboard and then delete it. That's seemed to clear it up for people going forward. It's been tough to troubleshoot on this end because it tends to clear itself up and I also don't have a Cloudflare account/zone it's happening on.
I have no cache rules set up at the moment. Only the following in Page Rules...

Code:
****/css.php?css=*
Browser Cache TTL: a year, Edge Cache TTL: a month, Origin Cache Control: On

...how do I convert the above Page Rule into a Cache Rule ?
 
also wondering if caching these pages on free accounts would end up creating an issue on free accounts. typical blogs do not really get as many pages as big forums do. from what i remember reading about it, they do not like free users caching excessive number of media files especially videos. but html pages should be fine i imagine.
 
I have no cache rules set up at the moment. Only the following in Page Rules...

Code:
*****/css.php?css=*
Browser Cache TTL: a year, Edge Cache TTL: a month, Origin Cache Control: On

...how do I convert the above Page Rule into a Cache Rule ?
Digging into their dev documentation as we speak, and I think I finally found the culprit buried...

The API returns a 404 Not Found HTTP status code under these conditions:
  • When a ruleset cannot be found.

Going to make some changes to take that into account, and that also answers the question of why it seems to work itself out. Like I mentioned earlier... just make a random Cache Rule (doesn't even need to be enabled) and then that ruleset will exist in your Cloudflare account and the add-on will function as intended with things.
 
Last edited:
I can't login at https://iolabs.io/; after successfully submitting the login form pages remain as "guest views" and keep telling me that I have to reload the page as the active user has changed.

I suspect this is caused by the new edge cache feature?
 
I can't login at https://iolabs.io/; after successfully submitting the login form pages remain as "guest views" and keep telling me that I have to reload the page as the active user has changed.

I suspect this is caused by the new edge cache feature?
Can you flush your browser cache, logout... and try again by chance (starting as a guest)? There was something I changed a few hours ago that might cause what you are seeing if you somehow visited the site as a guest between 2 and 6 hours ago. In theory it should be sorted now though, but you might have stale cache in your browser.
 
I've got the following error on rules:

Client error: GET https://api.cloudflare.com/client/v4/zones/snipdigits/rulesets/phases/http_request_cache_settings/entrypoint resulted in a 404 Not Found response: { "result": null, "success": false, "errors": [ { "message": "could not find entrypoint ruleset in the h (truncated...) / {"result":null,"success":false,"errors":[{"message":"could not find entrypoint ruleset in the http_request_cache_settings phase"}],"messages":null}

And in Access

10000: Authentication error
 
Can you flush your browser cache, logout... and try again by chance (starting as a guest)?
Tested in an incognito tab as well as entirely different browsers (that were never used to access the site) - exact same result.

I am sure you can figure out the problem, if not let me know and I'll tell you the root cause :)
 
If you look at DevTools at the Cache-Control header in the request, what's it set to (the page request where you see the message about active user changing).

Like I said, it was an issue earlier, but as far as I know it was sorted and I'm not able to replicate what you are seeing (I do know what you are seeing though because it was an issue before). Just for good measure, I just purged Cloudflare's cache for the entire domain. Maybe it was a page cached that still had the issue in a data center you are hitting).

The whole system was changed a few hours ago (before the release) to not cache anything in user's browsers just because of that issue. Quite possible I forgot to purge the domain's cache in Cloudflare before (which I did now).

Specifically, the pages with the issue you were seeing had a Cache-Control header of max-age=21600, and the fixed/new versions are max-age=1,s-maxage=21600. There should be nothing that is missing the s-maxage portion now unless it was from a stale cached version.
 
After installing the latest version, removing page rules, adding cache rules and enabling guest cache I can no longer accept cookies as a guest.

1673556031962.webp

Capture d’écran 2023-01-12 204127.webp

Capture d’écran 2023-01-12 203948.webp
 
Top Bottom