Add caching for static web assets
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user