Skip to content

Commit

Permalink
fix(release): cache bust the download page every 5 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
revitteth committed Mar 15, 2023
1 parent e3126a9 commit ca27980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/download-page.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# .github/workflows/trigger_after_release.yml

name: Trigger After Release

on:
Expand Down
4 changes: 3 additions & 1 deletion cmd/release/page/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
fetch("./data.json")
const cacheBuster = Math.floor(new Date().getTime() / (1000 * 60 * 5));

fetch("./data.json?cacheBuster=" + cacheBuster)
.then((response) => response.json())
.then((data) => {
const osList = ["linux", "darwin", "windows", "docker"];
Expand Down

0 comments on commit ca27980

Please sign in to comment.