From 79a5a9c2e69bdfbe4467056e8be9f2245ffeea67 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 2 May 2026 18:21:51 +0200 Subject: [PATCH] fix: remove confirmation and disable caching for continue watching deletion --- api/watchlist/handler.go | 1 + templates/components/continue_watching.gohtml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/watchlist/handler.go b/api/watchlist/handler.go index 506ebda..e3373f6 100644 --- a/api/watchlist/handler.go +++ b/api/watchlist/handler.go @@ -101,6 +101,7 @@ func (h *Handler) HandleDeleteContinueWatching(w http.ResponseWriter, r *http.Re return } + w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") w.WriteHeader(http.StatusOK) } diff --git a/templates/components/continue_watching.gohtml b/templates/components/continue_watching.gohtml index e0a2899..8e43a92 100644 --- a/templates/components/continue_watching.gohtml +++ b/templates/components/continue_watching.gohtml @@ -15,7 +15,7 @@
-