Archived
Template
1
0

Adds a cache max age parameter and fixes cache parameter for main.js (#12)

Fixed throttling
This commit is contained in:
Markus Tenghamn
2022-01-09 12:13:09 +01:00
committed by GitHub
parent 559059f54e
commit 5d01717111
7 changed files with 26 additions and 16 deletions

View File

@ -53,7 +53,7 @@ func Run() {
}
assets := r.Group("/assets")
assets.Use(middleware.Cache())
assets.Use(middleware.Cache(conf.CacheMaxAge))
assets.StaticFS("/", http.FS(subFS))