fix: add vary header for htmx cache busting

This commit is contained in:
2026-04-07 05:18:42 +02:00
parent aff336c15f
commit dd71f88572

View File

@@ -28,6 +28,8 @@ func (h *Handler) HandleCatalog(w http.ResponseWriter, r *http.Request) {
}
func (h *Handler) HandleSearch(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Vary", "HX-Request")
query := r.URL.Query().Get("q")
if query == "" {
templates.Search("").Render(r.Context(), w)