diff --git a/main.go b/main.go index 1d0f35f..3ac840b 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( _ "embed" ) -const VERSION = "v6"; +const VERSION = "v0.3.0"; const LISTEN_HOST = "0.0.0.0"; const DB_SCHEMA = 10 @@ -112,12 +112,7 @@ func staticHandler(w http.ResponseWriter, r *http.Request) {// {{{ // To get rid of problems with cached content in browser on a new version release, // while also not disabling cache altogether. log.Printf("static: %s", r.URL.Path) - if r.URL.Path == "/favicon.ico" { - static.ServeHTTP(w, r) - return - } - - rxp := regexp.MustCompile("^/(css|images|js|fonts)/v[0-9]+/(.*)$") + rxp := regexp.MustCompile("^/(css|images|js|fonts)/v[0-9]+\\.[0-9]+\\.[0-9]+/(.*)$") if comp := rxp.FindStringSubmatch(r.URL.Path); comp != nil { r.URL.Path = fmt.Sprintf("/%s/%s", comp[1], comp[2]) static.ServeHTTP(w, r) diff --git a/static/favicon.ico b/static/favicon.ico deleted file mode 100644 index 4d10245..0000000 Binary files a/static/favicon.ico and /dev/null differ diff --git a/static/index.html b/static/index.html index 979ac37..084b375 100644 --- a/static/index.html +++ b/static/index.html @@ -5,6 +5,8 @@ + + - -