Rename cache expiration config fields in controllers.

This commit is contained in:
mikestefanello 2021-12-11 13:41:57 -05:00
parent 57f3620aae
commit acf03dfd8f
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ func BuildRouter(c *container.Container) {
// Static files with proper cache control
// funcmap.File() should be used in templates to append a cache key to the URL in order to break cache
// after each server restart
c.Web.Group("", middleware.CacheControl(c.Config.Cache.MaxAge.StaticFile)).
c.Web.Group("", middleware.CacheControl(c.Config.Cache.Expiration.StaticFile)).
Static(config.StaticPrefix, config.StaticDir)
// Middleware