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.
Written by Alvaro Fernando Lara
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#