You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache-control header (RFC7234§5.2) supports a long list of directives, all of which need to be understood by CacheFilter (#7198). Currently, CacheFilter only parses and handles the private, no-cache, max-age, and s-maxage response directives, and ignores the rest. Some directives (max-stale, min-fresh, no-transform, only-if-cached, must-revalidate, public, proxy-revalidate), cause no harm (other than missed caching opportunities) if ignored. Others (max-age and no-cache request directives, and no-store request/response directive) can cause incorrect results to be served, and thus must be handled before CacheFilter can be generally usable with production traffic.
Current parsing code is in extensions/filters/http/cache/http_cache_utils.cc and cache_filter.cc.
The text was updated successfully, but these errors were encountered:
…aders (#11727)
Request and response cache-control headers are fully parsed in CacheHeadersUtils. isCacheableResponse in the CacheFilter now uses parsed cache-control headers to check if a received response can be cached. HttpCache now uses parsed cache-control headers to check if a cached response requires validation before it is served. Cache entries validation is not yet implemented.
Signed-off-by: Yosry Ahmed yosryahmed@google.com
Risk Level: Low
Testing: Unit testing
Docs Changes: N/A
Release Notes: N/A
Fixes#9833
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
KBaichoo
pushed a commit
to KBaichoo/envoy
that referenced
this issue
Jul 30, 2020
…aders (envoyproxy#11727)
Request and response cache-control headers are fully parsed in CacheHeadersUtils. isCacheableResponse in the CacheFilter now uses parsed cache-control headers to check if a received response can be cached. HttpCache now uses parsed cache-control headers to check if a cached response requires validation before it is served. Cache entries validation is not yet implemented.
Signed-off-by: Yosry Ahmed yosryahmed@google.com
Risk Level: Low
Testing: Unit testing
Docs Changes: N/A
Release Notes: N/A
Fixesenvoyproxy#9833
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
The cache-control header (RFC7234§5.2) supports a long list of directives, all of which need to be understood by CacheFilter (#7198). Currently, CacheFilter only parses and handles the private, no-cache, max-age, and s-maxage response directives, and ignores the rest. Some directives (max-stale, min-fresh, no-transform, only-if-cached, must-revalidate, public, proxy-revalidate), cause no harm (other than missed caching opportunities) if ignored. Others (max-age and no-cache request directives, and no-store request/response directive) can cause incorrect results to be served, and thus must be handled before CacheFilter can be generally usable with production traffic.
Current parsing code is in extensions/filters/http/cache/http_cache_utils.cc and cache_filter.cc.
The text was updated successfully, but these errors were encountered: