perf: reduce watch progress saves and cache anime API responses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user