perf: reduce watch progress saves and cache anime API responses

This commit is contained in:
2026-04-26 18:46:54 +02:00
parent df9309282b
commit d6457541ce
4 changed files with 22 additions and 18 deletions

View File

@@ -69,8 +69,10 @@ func RequestLogger(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
if strings.HasPrefix(r.URL.Path, "/dist/static/") ||
if strings.HasPrefix(r.URL.Path, "/dist/") ||
strings.HasPrefix(r.URL.Path, "/static/") ||
strings.HasPrefix(r.URL.Path, "/watch/proxy/stream") ||
strings.HasPrefix(r.URL.Path, "/watch/proxy/segment") ||
r.URL.Path == "/favicon.ico" {
next.ServeHTTP(w, r)
return