Closed phluid61 closed 11 years ago
This will require a lot of design and discussion, especially regarding non-safe and non-idempotent methods.
Have added basic ETag support for caching via If-None-Match requests. Use Response#etag and Response#is_modified
Closing this issue. The current ETag support (creation of strong & weak etags, setting ETag header, handling If-None-Match header for GET/HEAD requests, ability to access preconditional headers) is sufficient.
It is up to specific resources (and models, and representers) to appropriately handle precondition headers and conditional execution of methods.
Add support for ETag HTTP headers (including If-None-Match).