Skip to content

Commit

Permalink
fix: Use force-cache when fetching debugIds
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Oct 2, 2024
1 parent a49edf8 commit 6eb4fb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/app/utils/getErrorDebugIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export async function getErrorDebugIds(e: Error): Promise<{[filename: string]: s
}

try {
const text = await fetch(stackFrame.filename).then(res => res.text());
const text = await fetch(stackFrame.filename, {cache: 'force-cache'}).then(res =>
res.text()
);
const debugIdMatch = text.match(/^\/\/# debugId=(\S+)/im);

if (!debugIdMatch) {
Expand Down

0 comments on commit 6eb4fb2

Please sign in to comment.