diff options
author | mat <github@matdoes.dev> | 2022-03-05 17:53:24 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-03-05 17:53:24 -0600 |
commit | 89ca3281fbba35a8e4ad5e2c9561e1b9206acccd (patch) | |
tree | c58f68001d974e269daba3249efd161b8dd165a3 /src | |
parent | c5634edfaca4c856395afa4f38ffac32c5802d0d (diff) | |
download | skyblock-stats-89ca3281fbba35a8e4ad5e2c9561e1b9206acccd.tar.gz skyblock-stats-89ca3281fbba35a8e4ad5e2c9561e1b9206acccd.tar.bz2 skyblock-stats-89ca3281fbba35a8e4ad5e2c9561e1b9206acccd.zip |
cache busting in election
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/election.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/election.svelte b/src/routes/election.svelte index e987f8c..2c710ce 100644 --- a/src/routes/election.svelte +++ b/src/routes/election.svelte @@ -3,7 +3,9 @@ import { API_URL } from '$lib/api' export const load: Load = async ({ params, fetch }) => { - const data = await fetch(`${API_URL}election`).then(r => r.json()) + const data = await fetch(`${API_URL}election?t=${Math.floor(Date.now() / 1000)}`).then(r => + r.json() + ) return { props: { |