mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix config.json being cached
This commit is contained in:
parent
800a05b087
commit
c66cf02db4
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue