A local-first personal finance app
🐛 Theme fetch cache bursting (#8448)
lelemmed57d9b4edc3
diff --git a/packages/desktop-client/src/style/customThemes.ts b/packages/desktop-client/src/style/customThemes.tsindex 71bcd37df7..9d1dccfc2f 100644--- a/packages/desktop-client/src/style/customThemes.ts+++ b/packages/desktop-client/src/style/customThemes.ts@@ -60,16 +60,19 @@ export function normalizeGitHubRepo(repo: string): string {* Try fetching actual.css from main branch.*/export function fetchThemeCss(repo: string): Promise<string> {- return fetchDirectCss(+ const url = new URL(`https://raw.githubusercontent.com/${repo}/refs/heads/main/actual.css`,);+ url.searchParams.set('v', Date.now().toString());++ return fetchDirectCss(url.toString());}/*** Fetch CSS from a direct URL (not a GitHub repo).*/export async function fetchDirectCss(url: string): Promise<string> {- const response = await fetch(url);+ const response = await fetch(url, { cache: 'no-store' });if (!response.ok) {throw new Error(`Failed to fetch CSS from ${url}: ${response.status} ${response.statusText}`,diff --git a/upcoming-release-notes/fix-custom-theme-css-cache.md b/upcoming-release-notes/fix-custom-theme-css-cache.mdnew file mode 100644index 0000000000..def4d83fb6--- /dev/null+++ b/upcoming-release-notes/fix-custom-theme-css-cache.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [lelemm]+---++Fetch the latest custom theme CSS when installing themes from the catalog.