Add caching for static web assets

This commit is contained in:
Benedikt Kulmann
2020-11-16 23:22:56 +01:00
parent aaf9029a3e
commit 9c6dac8328
10 changed files with 50 additions and 5 deletions
+1
View File
@@ -60,6 +60,7 @@ func Server(opts ...Option) http.Service {
assets.Logger(options.Logger),
assets.Config(options.Config),
),
options.Config.HTTP.CacheTTL,
))
mux.Route(options.Config.HTTP.Root, func(r chi.Router) {