> On Feb 11, 2014, at 4:30 AM, Li Li <[email protected]> wrote:
> 
> public enum CacheResponseStatus {
> 
>    /** The response was generated directly by the caching module. */
>    CACHE_MODULE_RESPONSE,
> 
> ...
> 
> }
> 
> when CACHE_MODULE_RESPONSE is used?

There are only a couple of cases where this happens:

1. If you issue a request with 'Cache-Control: only-if-cached' but there is no 
cache entry, the caching module generates a 504 response.

2. If a cache entry is stale, is marked with 'Cache-Control: must-revalidate', 
and the validation request times out or has an IOException, we generate a 502 
response.

There may be a couple more edge cases (I'm answering from memory), but the 
essence is the same: there is an actual HttpResponse being returned but it did 
not come from an upstream server--it was generated whole cloth by the caching 
module itself.

Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to