RTM: Marvin.Cache.Headers – ASP.NET Core Middleware for Generating Cache-related Response Headers

Today I’m happy to announce the RTM release of the Marvin.Cache.Headers middleware for ASP.NET Core.

Marvin.Cache.Headers is ASP.NET Core middleware that adds HttpCache headers to responses (Cache-Control, Expires, ETag, Last-Modified), and implements cache expiration & validation models.

These headers are (mainly) used for caching & concurrency purposes, so have a look you want to implement one of those for your (RESTful) API.  The middleware also takes care of returning a 304 – Not Modified or 412 – Precondition Failed when applicable.  Here’s a good write-up of how these are used, including some real-life scenarios.

If you notice any issues or you want to help out, one address: Marvin.Cache.Headers Github.

Happy coding! :)

 Tweet about this on TwitterShare on LinkedInShare on Facebook