gin-cachecontrol

Cache-Control middleware for Gin

MIT License

Stars
6
Committers
2

Bot releases are visible (Hide)

gin-cachecontrol - Support Go 1.23 Latest Release

Published by joeig about 1 month ago

New

  • Support Go 1.23 (#36)

Deprecate

gin-cachecontrol - Support Go 1.22

Published by joeig 8 months ago

New

  • Support Go 1.22
gin-cachecontrol - Require an instance of Config instead of a pointer

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.

Changes

gin-cachecontrol - Add a preset to cache assets forever

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.

gin-cachecontrol - Implement and expose cache-control middleware for Gin

Published by joeig almost 3 years ago

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