This commit is contained in:
Aliaksandr Valialkin 2024-05-22 23:21:59 +02:00
parent 09f0049754
commit f6a35ceaeb
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -93,7 +93,7 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool {
// See https://developer.chrome.com/docs/lighthouse/performance/uses-long-cache-ttl/
w.Header().Set("Cache-Control", "max-age=31536000")
}
r.URL.Path = path
r.URL.Path = strings.TrimPrefix(path, "/select")
vmuiFileServer.ServeHTTP(w, r)
return true
}