Skip to content

Commit b9ea0e1

Browse files
committed
Do not cache yaml
Firefox aggressively caches fetch() responses and seems to never refresh them even after force reloading. Without this we will never see the new items in a new catalog
1 parent d1dee79 commit b9ea0e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

console/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const PATTERN_UI_CATALOG_BASE_URL = __PATTERN_UI_CATALOG_BASE_URL__ || DEFAULT_P
1313

1414

1515
async function fetchYAML<T>(url: string): Promise<T> {
16-
const response = await consoleFetch(url);
16+
const response = await consoleFetch(url, { cache: 'no-store' });
1717
const text = await response.text();
1818
return load(text) as T;
1919
}

0 commit comments

Comments
 (0)