Cache

The Cache middleware is designed to intercept responses and store them in a cache.

This middleware will cache the Body, Content-Type and StatusCode using the c.Path() (or a string returned by the Key function) as the unique identifier.

For more information about the Cache middleware, click here

cache.go