When I browsed my Flarum community using the Safari browser, I found that when opening the discussion details page or returning to the discussion list, unexpected refreshes would occur.
Specifically, when browsing the Flarum site using browsers such as Safari, Chrome, and PWA on iOS (iOS 16) and Safari on macOS (macOS 11), the following may occur: 1. When the discussion details page is opened, the The image will flash once after loading, and the image will flash if you click on any element within the page (this problem may be related to the nearata/flarum-ext-related-discussions extension). 2. When returning to the discussion list from the discussion details page, elements such as avatars and pictures will flash once as if refreshing.
The above situations all occur probabilistically. For example, after clicking the link below to enter, every operation will refresh unexpectedly; but after closing the browser and reopening it, every operation will be normal and there will be no accidental refresh.
In the video above, the first PWA (Safari) experiences unexpected refresh flickering, while the second Safari and third Chrome both function normally. Most of the time problems will occur randomly with all three.
I haven't found the cause of this problem yet, and I don't know if it's just my site. None of the above problems occur in Chrome on the desktop, and the Android platform has not been tested yet.
My site: https://www.moresound.club/, thank you everyone!