mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #5730 from jellyfin-web/release-10.9.z
Add no-cache attribute for fetch requests to /system/info/public to prevent stale server info
Original-merge: a0e6da790c
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: thornbill <thornbill@users.noreply.github.com>
This commit is contained in:
parent
b2d5a67f26
commit
614c9e4481
4 changed files with 4 additions and 4 deletions
|
@ -387,7 +387,7 @@ class AppRouter {
|
|||
if (firstResult) {
|
||||
if (firstResult.State === ConnectionState.ServerSignIn) {
|
||||
const url = firstResult.ApiClient.serverAddress() + '/System/Info/Public';
|
||||
fetch(url).then(response => {
|
||||
fetch(url, { cache: 'no-cache' }).then(response => {
|
||||
if (!response.ok) return Promise.reject(new Error('fetch failed'));
|
||||
return response.json();
|
||||
}).then(data => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue