Skip to content
Ali Kheyrollahi edited this page Aug 3, 2013 · 10 revisions

CacheCow is a library for implementing HTTP caching on both client and server in ASP.NET Web API. It uses message handlers on both client and server to intercept request and response and apply caching logic and rules.

This library is setup to work with minimal setup and is flexible to allow for custom or complex resource organisation.


Getting started

FAQ


CacheCow.Server features

  • Managing ETag, Last Modified, Expires and other cache related headers
  • Implementing returning Not-Modified 304 and precondition failed 412 responses for conditional calls
  • Invalidating cache in case of PUT, POST, PATCH and DELETE
  • Flexible resource organisation. Rules can be defined so invalidation of a resource can invalidate linked resources

CacheCow.Client features

  • Caching GET responses according to their caching headers
  • Verifying cached items for their staleness
  • Validating cached items if must-revalidate parameter of Cache-Control header is set to true. It will use ETag or Expires whichever exists
  • Making conditional PUT for resources that are cached based on their ETag or expires header, whichever exists

Blog posts

Introducing CacheCow: An HTTP caching framework for server and client

CacheCow.Client, using the benefits of HTTP Caching on the client

Take your Web API service consumption up to 11 with CacheCow.Client

CacheCow Series - Part 0: Getting started and caching basics

Clone this wiki locally