diff --git a/http/static.go b/http/static.go index 9d1a0d35..469721e4 100644 --- a/http/static.go +++ b/http/static.go @@ -113,6 +113,10 @@ func getStaticHandlers(store *storage.Storage, server *settings.Server, assetsFs return http.StatusNotFound, nil } + if strings.HasSuffix(r.URL.Path, "/") { + return http.StatusNotFound, nil + } + const maxAge = 86400 // 1 day w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%v", maxAge))