diff --git a/cmd/bulk-api-tester/main.go b/cmd/bulk-api-tester/main.go index a95fc09..2850f3b 100644 --- a/cmd/bulk-api-tester/main.go +++ b/cmd/bulk-api-tester/main.go @@ -40,14 +40,17 @@ func registerRoutes(r chi.Router) { }) r.Get("/styles.css", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "text/css; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "styles.css")) }) r.Get("/style.css", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "text/css; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "styles.css")) }) r.Get("/app.js", func(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "application/javascript; charset=utf-8") + w.Header().Set("Cache-Control", "no-cache, must-revalidate") http.ServeFile(w, req, filepath.Join(webDir, "app.js")) }) diff --git a/web/bulk-api-tester/app.js b/web/bulk-api-tester/app.js index 7edcce7..bf477af 100644 --- a/web/bulk-api-tester/app.js +++ b/web/bulk-api-tester/app.js @@ -136,9 +136,9 @@ const App = {