diff --git a/todo.html b/todo.html
index bdc5c06..8868d2d 100644
--- a/todo.html
+++ b/todo.html
@@ -442,13 +442,15 @@
async function apiFetch(method, body) {
const opts = {
method,
+ cache: "no-store",
headers: {
"Content-Type": "application/json",
...authHeaders(),
},
};
if (body !== undefined) opts.body = JSON.stringify(body);
- const res = await fetch(API, opts);
+ const url = method === "GET" ? API + "?_t=" + Date.now() : API;
+ const res = await fetch(url, opts);
if (res.status === 401 || res.status === 403)
throw new Error("AUTH");
if (!res.ok) throw new Error("HTTP " + res.status);