perf(bulk-api-tester): resolve collections search lag with pre-indexing, debouncing, and token matching

This commit is contained in:
2026-10-27 16:58:46 +05:30
parent 5596c18aed
commit 9376e74846
4 changed files with 534 additions and 106 deletions
+3
View File
@@ -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"))
})