From 89ca3281fbba35a8e4ad5e2c9561e1b9206acccd Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 5 Mar 2022 17:53:24 -0600 Subject: cache busting in election --- src/routes/election.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: { -- cgit