-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise CachePolicy based on what we've learned. #31050
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a summary to the commit description of what's changing and why?
@@ -23,82 +22,96 @@ struct CacheEntryUsability { | |||
* Value to be put in the Age header for cache responses. | |||
*/ | |||
Seconds age = Seconds::max(); | |||
/** | |||
* Remaining freshness lifetime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining relative to when?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expanded explanation. Is that sufficiently clear?
Signed-off-by: Todd Greer <tgreer@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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