Merge pull request #4605 from thornbill/no-config-caching

This commit is contained in:
Bill Thornton 2023-05-15 11:12:51 -04:00 committed by GitHub
commit 867516b270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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) {