Skip to content
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

Merged
merged 1 commit into from Apr 17, 2024

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Apr 12, 2024

@@ -192,6 +192,9 @@ message InboundMessage {
// `null` instead.
string error = 3;
}

// Whether `containing_url` in `CanonicalizeRequest` is unused.
bool containing_url_unused = 4;
Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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;
Copy link
Contributor

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?

spec/embedded_sass.proto Outdated Show resolved Hide resolved
@nex3 nex3 merged commit 92c48d2 into sass:main Apr 17, 2024
9 checks passed
@ntkme ntkme deleted the accessed-containing-url branch April 17, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants