diff --git a/src/main.go b/src/main.go index cda6d2b..67fbd8d 100644 --- a/src/main.go +++ b/src/main.go @@ -80,8 +80,8 @@ func main() { router.StaticFile("/favicon.ico", "./web/favicon.ico") router.LoadHTMLFiles("web/index.html") - router.GET("/", cache.CachePageWithoutQuery(cacheStore, 2*time.Minute, index)) // index page - router.GET("/list/json", list) // show information in json + router.GET("/", cache.CachePage(cacheStore, 2*time.Minute, index)) // index page + router.GET("/list/json", list) // show information in json router.GET("/login", authoriseUserHandler) // to register router.GET("/auth", oAuthCallbackHandler) // oauth callback