ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6353
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by thecoalman »

https://blog.cloudflare.com/introducing-speed-brain/
Our initial approach uses a conservative model that prefetches static content for the next page when a user starts a touch or click event.
If you look in access logs you'll see two requests for some URL's. It's hit and miss and won't always pefetch it. This will break phpBB's unread posts feature because the initial request marks them read and the second request sent to user will now have them marked read. Either turn it off or create a rule for it.

Edit: Apparently only Chromium based browsers support it.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
HB
Registered User
Posts: 230
Joined: Mon May 16, 2005 9:30 pm

Re: ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by HB »

Thanks for the heads up. By the way, the option is under Speed > Optimization > Content Optimization. It appears to be on by default.
Dan Kehn
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6353
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by thecoalman »

Yes it on by default, why they would turn it on by default is beyond me because it can cause all kinds of problems. e.g. let's suppose your are tracking someone's page views for subscription content. Well each click is 2 page views. How anyone could possibly think this is good idea deployed en masse is beyond me.

There is information here about this new feature Cloudflare is leveraging, it's currently only supported by Chromium based browsers.

https://developer.mozilla.org/en-US/doc ... _Rules_API

I can see the benefits for performance but it's something that needs considerations per site.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
rxu
Extensions Development Team
Posts: 3919
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by rxu »

thecoalman wrote: Sun Oct 06, 2024 3:05 pm it can cause all kinds of problems
Indeed, this causes problems with some extensions as well, so not unread posts only. Thanks for the info.
I'd make this topic sticky as there can be other issues with this in the future.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26848
Joined: Fri Aug 29, 2008 9:49 am

Re: ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by Mick »

rxu wrote: Thu Oct 10, 2024 8:50 amI'd make this topic sticky as there can be other issues with this in the future
It would be better to get the conversation going at Cloudflare support imho.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6353
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: ATTN: Cloudflare Users, Speed Brain Breaks phpBB Unread Posts

Post by thecoalman »

I have already posted there as have others, it's not just phpBB. It's any web application that is going to have features dependent on user click. There is a lot of people that don't know this is breaking features on their site.

  • FF does not support this feature as of yet so issue doesn't exist there. It's only supported by Chromium based browsers so far
  • There is only two indications it's occurring that I have found. You'll see double request in access logs and in Chrome it will be listed in the network tab as resource. Since the action occurs on click there is nothing else in Chrome console I have found to indicate there is double request.
  • It doesn't happen on every click, it's a suggestion to the browser which may or may not double click.

The only reason I found about it was someone reported it me on my site 3 days later I happened to notice "Speculation" in the network list in Chrome. Not only may the site owner not be aware of an issue it's difficult to find the cause even when you are aware of it.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison

Return to “phpBB Discussion”