Browser issue Slow logout on Chrome on XF.com

vbresults

Well-known member
Affected version
xenforo.com
On XF.com, when I log out, it hangs as if it's doing an endless redirect loop, but I think it might actually be related to CloudFlare. This seems to happen in MacOS Safari 18.5 but not Firefox or Chrome.

When CloudFlare happens to be triggered on logout, Firefox and Chrome show the CF verification page/checkbox but Safari just hangs. The logout occurs if I hard-refresh so it seems to be strictly CF-related.
 
Last edited:
This will actually be related to us re-enabling the Clear-Site-Data: cache header for logouts:

We had it briefly a while back but it caused hangs for quite a while:

It's ultimately a Chrome issue, the situation seems to have improved somewhat over the years but it still seems to take quite a while to clear the data.
 
The same thing happens to me both here and on my forums (2.3.7, Safari Desktop 18.5).

When I logout, the browser keeps loading and does nothing.
 
It'll be the same cause. You can disable this behavior with a config flag if you are not using the guest page cache and are comfortable with browser back/forward navigations potentially loading cached pages of formerly logged in users:

PHP:
$config['enableClearSiteData'] = false;
 
On Apple Mac, when you log out of your account, the system hangs for a long time until you simply refresh the page. This behavior appeared after the last update.

Where is the file that needs to be changed?
 
/src/config.php

it is basically the file where your database information and other configuration settings are present. you can basically just add this line as this is not really a code change.
 
Is this a bug? Will it be fixed in the next versions of the forum? Or is it the fault of Safari and Google Chrome browsers?
We need to understand whether to make changes to the configuration file or wait for the next update? It's just that this affects a huge number of users, everyone who visits the forum from these browsers and it looks, quite inconvenient. Maybe a patch will be released in the very near future?
 
It's not a bug in XenForo.

What we are doing is telling the browsers that, upon logout, any cached data related to XenForo should be cleared from its memory.

This is important because, without it, logging out of a shared computer would enable someone else to come along and potentially navigate through your browsing history and access pages that may contain sensitive information such as authentication details, contact details or direct messages and private forums, which may also contain sensitive information in their own right.

Why this seemingly takes so long on some browsers is really a question for the browser developers, and it most likely indicates a bug in those browsers themselves.

If the current behaviour is undesirable, that's when you would add the following to your config to disable the cache clearing behaviour:

PHP:
$config['enableClearSiteData'] = false;

So, in summary, your options are:

1. A slower, but more secure, log out process that ensures personal or sensitive information is removed from browser caches
2. A faster, but less secure, log out process, acknowledging that, in some cases, sensitive information can remain in a browser cache

That's the decision you need to make but the hope is that this will be optimised in future browser updates.
 
Back
Top Bottom