pub fn default_status_code_cache_filter(code: StatusCode) -> CacheAction
Expand description
This is the default for Options::status_code_cache_filter
.
This caches the request on every StatusCode
except
- client errors, however
404 Not Found
and410 Gone
are still cached - any informational response
- 304 Not Modified