Archived
Template
1
0

Adds a cache max age parameter and fixes cache parameter for main.js

Fixed throttling
This commit is contained in:
uberswe
2022-01-09 12:11:54 +01:00
parent 559059f54e
commit 3f3b2338d6
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))