Skip to content

Commit

Permalink
Add Issue Cachebuster
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 30, 2024
1 parent 8fb9078 commit 3ab28b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ async function refresh() {
}
async function fetchIssue(repo, issueid): Promise<Static<typeof Issue>> {
const url = new URL(`https://api.github.com/repos/${repo}/issues/${issueid}`)
url.searchParams.append('cacheBuster', +new Date());
const res = await fetch(`https://api.github.com/repos/${repo}/issues/${issueid}`)
const issue = await res.json()
Expand Down

0 comments on commit 3ab28b1

Please sign in to comment.