perf(bulk-api-tester): resolve collections search lag with pre-indexing, debouncing, and token matching
This commit is contained in:
@@ -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"))
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user