mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
Merge pull request #4605 from thornbill/no-config-caching
This commit is contained in:
commit
867516b270
@ -13,7 +13,7 @@ export const WebConfigProvider: FC = ({ children }) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchConfig = async () => {
|
const fetchConfig = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetchLocal('config.json', { cache: 'no-cache' });
|
const response = await fetchLocal('config.json', { cache: 'no-store' });
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error('network response was not ok');
|
throw new Error('network response was not ok');
|
||||||
|
@ -7,7 +7,7 @@ async function getConfig() {
|
|||||||
if (data) return Promise.resolve(data);
|
if (data) return Promise.resolve(data);
|
||||||
try {
|
try {
|
||||||
const response = await fetchLocal('config.json', {
|
const response = await fetchLocal('config.json', {
|
||||||
cache: 'no-cache'
|
cache: 'no-store'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
Loading…
Reference in New Issue
Block a user