Skip to content

Releases: joeig/gin-cachecontrol

Support Go 1.25, Gin 1.11

16 Oct 07:14

Choose a tag to compare

New

  • Support Go 1.25 (#69)
  • Use Gin 1.11.0 (#67)
  • Several dependency updates

Deprecate

Support Go 1.24

13 Mar 07:25

Choose a tag to compare

New

  • Support Go 1.24 (#51)

Deprecate

Support Go 1.23

11 Sep 09:56

Choose a tag to compare

New

  • Support Go 1.23 (#36)

Deprecate

Support Go 1.22

09 Feb 09:16

Choose a tag to compare

New

  • Support Go 1.22

Require an instance of Config instead of a pointer

09 Jan 14:14
6e147c3

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

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

Choose a tag to compare

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