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
Implement access tracking for containingUrl #3835
Conversation
a5d6e99
to
0a2d9f6
Compare
0a2d9f6
to
467a9c1
Compare
@@ -192,6 +192,9 @@ message InboundMessage { | |||
// `null` instead. | |||
string error = 3; | |||
} | |||
|
|||
// Whether `containing_url` in `CanonicalizeRequest` is unused. | |||
bool containing_url_unused = 4; |
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.
In protobuf, bool
default to false
when it's unset.
The default unused = false
is effectively accessed = true
, which means cacheable = false
. This is the ideal default, that it works correctly even if the host does not implement the tracking, making the protocol backward compatible.
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 mention this reasoning in the documentation?
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.
Added. Please feel free to edit this PR if you would like to rephrase the language.
@@ -192,6 +192,9 @@ message InboundMessage { | |||
// `null` instead. | |||
string error = 3; | |||
} | |||
|
|||
// Whether `containing_url` in `CanonicalizeRequest` is unused. | |||
bool containing_url_unused = 4; |
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 mention this reasoning in the documentation?
467a9c1
to
840e2ce
Compare
sass/dart-sass#2208