-
Bug
-
Resolution: Done
-
Major
-
3.0.14.Final
-
None
-
None
My understanding is, that if a HTTP response contains the private flag in the cache-control header field, any 'shared' cache must not store this information. The response is only to be cached by the browser cache for example.
RestEasy offers the annotation @Cache, also with the property 'isPrivate', but having a look at the ServerCacheInterceptor class, it is not taken into account. Every response is put in the cache, as long as:
- it is a response to a HTTP GET
- the request object does not contain the 'DO_NOT_CACHE_RESPONSE' attribute
- the response contains a cache-control header field
- and that field is not set to 'no-cache'.
There is no check for flags like private (or no-store) for example. But since it is a public/shared cache for any client, it should have some.