diff --git a/cmd/root.go b/cmd/root.go index 08878e4..d9826db 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ var ( ) const ( - Version string = "0.63.0" + Version string = "0.63.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 90a44d5..d1bd57d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -841,10 +841,6 @@ func serveStaticFile(paths []string, stats *ServeStats, index *Index) httprouter fileSize := humanReadableSize(len(buf)) if russian { - if cache { - index.Remove(filePath) - } - err = os.Remove(filePath) if err != nil { fmt.Println(err) @@ -853,6 +849,10 @@ func serveStaticFile(paths []string, stats *ServeStats, index *Index) httprouter return } + + if cache { + index.Remove(filePath) + } } if verbose {