Skip to content

Releases: joeig/gin-cachecontrol

Support Go 1.23

11 Sep 09:56
Compare
Choose a tag to compare

New

  • Support Go 1.23 (#36)

Deprecate

Support Go 1.22

09 Feb 09:16
Compare
Choose a tag to compare

New

  • Support Go 1.22

Require an instance of Config instead of a pointer

09 Jan 14:14
6e147c3
Compare
Choose a tag to compare

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

  • Require an instance of Config instead of a pointer by @joeig in #1

Add a preset to cache assets forever

08 Jan 20:36
Compare
Choose a tag to compare

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

08 Jan 19:56
Compare
Choose a tag to compare

This is the inital release of a Gin middleware, which generates cache-control headers.