Releases: joeig/gin-cachecontrol
Releases · joeig/gin-cachecontrol
Support Go 1.23
New
- Support Go 1.23 (#36)
Deprecate
- Stop testing with Go 1.21 in accordance with Go's version support policy (#36)
Support Go 1.22
New
- Support Go 1.22
Require an instance of Config instead of a pointer
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.
Changes
Add a preset to cache assets forever
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.
Implement and expose cache-control middleware for Gin
This is the inital release of a Gin middleware, which generates cache-control headers.