skicomau
Active member
Since early December members of my forum have been reporting annoying cache issues.
Mostly with threads but also caching of notification alerts and other elements.
The reports are mostly Android (Samsung) mobile running Chrome, but also some Chrome desktop on PC.
No reports from anyone with iOS using either Safari or Chrome. No reports from Mac users.
I have only been able to recreate the issue on my desktop PC since the recent major Firefox 57 update.
My personal Chrome browser does not experience the cache issue ( v 63.0.3239.132)
In all cases a forced browser refresh will return the most recent posts on a thread.
My server setup is;
Xenforo 1.5.16
UI.X 1.5.16a.0
Nginx 1.10.3
OpenSSL 1.0.2k
PHP 5.6.3
Memecache: not installed
Opcache: enabled
Using Firefox Developer tool the only clue I can find is that a 'service worker' is returning the cached page. I presume the service worker is initiating in javascript somewhere - but I'm no front end dev.
Within the screengrabs attached, you can see that a fetch is made to server and the latest thread HTML returned (with a slightly larger file size), followed by a service worker returning the cached page of some time earlier (slightly smaller file size).
I updated \Xenforo\Session.php to include 'must-revalidate' in the Cache-control headers. This had no impact on my Firefox and it continued to cache threads, however a couple of members reported improvement with notification flags but not cached threads.
This issue has got me completely stumped and is causing much concern with a subset of my regular forum members.
Nothing was changed with my server setup prior to the reports coming through. I upgraded the site to secure in September last year, so several months prior to this issue.
Any clues appreciated.
if required, I can answer any question about my nginx, secure TLS & php setup.
Mostly with threads but also caching of notification alerts and other elements.
The reports are mostly Android (Samsung) mobile running Chrome, but also some Chrome desktop on PC.
No reports from anyone with iOS using either Safari or Chrome. No reports from Mac users.
I have only been able to recreate the issue on my desktop PC since the recent major Firefox 57 update.
My personal Chrome browser does not experience the cache issue ( v 63.0.3239.132)
In all cases a forced browser refresh will return the most recent posts on a thread.
My server setup is;
Xenforo 1.5.16
UI.X 1.5.16a.0
Nginx 1.10.3
OpenSSL 1.0.2k
PHP 5.6.3
Memecache: not installed
Opcache: enabled
Using Firefox Developer tool the only clue I can find is that a 'service worker' is returning the cached page. I presume the service worker is initiating in javascript somewhere - but I'm no front end dev.
Within the screengrabs attached, you can see that a fetch is made to server and the latest thread HTML returned (with a slightly larger file size), followed by a service worker returning the cached page of some time earlier (slightly smaller file size).
I updated \Xenforo\Session.php to include 'must-revalidate' in the Cache-control headers. This had no impact on my Firefox and it continued to cache threads, however a couple of members reported improvement with notification flags but not cached threads.
This issue has got me completely stumped and is causing much concern with a subset of my regular forum members.
Nothing was changed with my server setup prior to the reports coming through. I upgraded the site to secure in September last year, so several months prior to this issue.
Any clues appreciated.
if required, I can answer any question about my nginx, secure TLS & php setup.