Increase assets cache time
This commit is contained in:
parent
1a4c12d851
commit
785f6a36bf
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ func (a *Application) Serve() error {
|
|||
|
||||
mux.Handle(
|
||||
fmt.Sprintf("GET /static/%s/{path...}", a.Config.Server.AssetsHash),
|
||||
http.StripPrefix("/static/"+a.Config.Server.AssetsHash, FileServerWithCache(http.FS(assets.PublicFS), 8*time.Hour)),
|
||||
http.StripPrefix("/static/"+a.Config.Server.AssetsHash, FileServerWithCache(http.FS(assets.PublicFS), 24*time.Hour)),
|
||||
)
|
||||
|
||||
if a.Config.Server.AssetsPath != "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue