Revise CachePolicy based on what we've learned.#31050
Revise CachePolicy based on what we've learned.#31050jmarantz merged 6 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Todd Greer <tgreer@google.com>
|
/assign @mkbehr |
Signed-off-by: Todd Greer <tgreer@google.com>
Signed-off-by: Todd Greer <tgreer@google.com>
mkbehr
left a comment
There was a problem hiding this comment.
Can you add a summary to the commit description of what's changing and why?
| */ | ||
| Seconds age = Seconds::max(); | ||
| /** | ||
| * Remaining freshness lifetime. |
There was a problem hiding this comment.
Remaining relative to when?
Signed-off-by: Todd Greer <tgreer@google.com>
I don't know how to do that. A maintainer with merge authority will eventually squash all commits into one, and I don't know how that commit gets its description. I guess we can bring this up with the maintainer once that review gets going. |
|
Maintainers usually cut and paste from the Deescription to populate the message for the squashed commit. |
There's a comment at the top of the pull request that got populated with a template, and IME that's where the description comes from. I think github will let you edit the comment. This looks good to me so far but I want to make sure I understand everything that's different from our internal changes (e.g. removing the callbacks) before I hit approve, so the summary will help that. |
Thanks! Updated. |
|
@jmarantz this is ready for your review |
jmarantz
left a comment
There was a problem hiding this comment.
one minor nit and I think I can merge this, as it's just an extension.
| // Don't respond to this request from cache, or store its response into cache. | ||
| Bypass, | ||
| // This request is eligible for serving from cache, but its response must not be stored. (E.g. | ||
| // requests with "Cache-Control: no-store"). |
There was a problem hiding this comment.
I think Raven asked this already but I missed the answer, but how does a no-store request get served from cache if the response cannot be stored? Maybe you could add that to the comment here?
There was a problem hiding this comment.
Expanded explanation. Is that sufficiently clear?
Signed-off-by: Todd Greer <tgreer@google.com>
|
Needs format fix |
|
/wait |
Signed-off-by: Todd Greer <tgreer@google.com>
|
Fixed formatting/spelling. |
|
/retest |
Commit Message:
Revise CachePolicy interface based on experience using a forked version.
Additional Description:
Risk Level: None--not yet used
Testing: n/a--it's just an interface
Docs Changes: n/a--not yet used
Release Notes: n/a--not yet used
Platform Specific Features: n/a