infinispan/infinispan — pull request #2044 by mgencur (2013-09-03 09:34:43+00:00)
Title: ISPN-3459 Add support for Cache-Control http header to REST server

Supported request headers:
* Cache-Control: min-fresh -> specifies that the entry must not expire in min-fresh seconds since the time of the response (if the entry is going to expire shortly, then REST does not return it, and returns NOT_FOUND)
* other directives of Cache-control IMO do not make sense for Infinispan: no-cache, no-store, no-transform, max-age, max-stale, ...

Supported response headers:
* Cache-Control: max-age=xx -> this is similar to Expires, only the time is relative, in seconds (e.g max-age=10 means the entry will expire in 10 seconds)
* Cache-Control: no-transform -> this is added by default to each response that contains also max-age
* other directive IMO do not make sense for Infinispan. I'm not 100% sure about "private"/"public" directive, by default it's public