Last Updated: February 25, 2016
·
639
· guiman

Heads up on Rack::Cache

When using Rack::Cache remember that it only implements the caching part of the Http Cache mechanism. It's your responsibility (or your framework) to:

  • add the corresponding validation (Cache-Contro and Expires) and verification (Last-Modified and ETag).
  • handle the cache quering requests (the ones that came with If-Modified-Since and/or If-None-Match) in order for it to work headers.