21 #ifndef NET_INSTAWEB_HTTP_PUBLIC_HTTP_CACHE_FAILURE_H_
22 #define NET_INSTAWEB_HTTP_PUBLIC_HTTP_CACHE_FAILURE_H_
28 namespace net_instaweb {
34 kFetchStatusNotSet = 0,
36 kFetchStatusUncacheable200 = 2,
37 kFetchStatusUncacheableError = 3,
38 kFetchStatus4xxError = 4,
39 kFetchStatusOtherError = 5,
40 kFetchStatusDropped = 6,
65 bool physical_fetch_success,
66 bool external_cacheable);
74 static HttpStatus::Code EncodeFailureCachingStatus(
static bool IsFailureCachingStatus(HttpStatus::Code code)
Returns true if the given status code is used to remember failure.
static FetchResponseStatus ClassifyFailure(const ResponseHeaders &headers, StringPiece contents, bool physical_fetch_success, bool external_cacheable)
static FetchResponseStatus DecodeFailureCachingStatus(HttpStatus::Code code)
int ttl_sec_for_status[8]
Definition: http_cache_failure.h:51
Definition: http_cache_failure.h:46
FetchResponseStatus
Definition: http_cache_failure.h:33
Definition: http_cache_failure.h:54