Bot releases are visible (Hide)
Published by joeig 8 months ago
Published by joeig almost 3 years ago
This release requires an instance of Config
instead of a pointer in New
, in order to avoid common mistakes when applied concurrently. Furthermore, this change moves the generation of cache-controls from request-invocation to middleware-instantiation to increase performance.
Config
instead of a pointer by @joeig in https://github.com/joeig/gin-cachecontrol/pull/1
Published by joeig almost 3 years ago
CacheAssetsForeverPreset
is a cache-control configuration preset which advices the HTTP client and all caches in between to cache the object forever without revalidation.
Technically, "forever" means 1 year, in order to comply with common CDN limits.
Published by joeig almost 3 years ago
This is the inital release of a Gin middleware, which generates cache-control headers.