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

alt-svc: Question about parameters #123

Closed
rjb1000 opened this issue Dec 1, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@rjb1000
Copy link

commented Dec 1, 2015

The Internet Draft specifies a syntax for parameters (Section 3), and an IANA registry to manage their name space (Section 7.3), but doesn't prescribe what parameters should be used for, except for the following fleeting reference:

7.3. Alt-Svc Parameter Registry

The HTTP Alt-Svc Parameter Registry defines the name space for the cache directives. ...

Is the intention that parameters should only be used as cache directives, as implied by the above sentence? The two parameters specified in the Draft ("ma" and "persist") are certainly of that flavour. Or is the intention that parameters could be used for other purposes as well?

If the latter, perhaps the language in section 7.3 could be softened, e.g.

The HTTP Alt-Svc Parameter Registry defines the name space for parameter names. ...

The text at Section 3 currently launches into the following with no preamble:

3. The Alt-Svc HTTP Header Field

...
This specification defines two parameters: "ma" and "persist", defined in Section 3.1. Unknown parameters MUST be ignored, that is the values (alt-value) they appear in MUST be processed as if the unknown parameter was not present.
New parameters can be defined in extension specifications (see Section 7.3 for registration details).
...

How about inserting a sentence along the following lines:

Each "alt-value" MAY be followed by a semicolon-separated list of additional parameters, each such "parameter" comprising a name and a value. This specification defines two parameters...

Or, if you want to constrain the use of parameters in any way, you could do that here.

@reschke

This comment has been minimized.

Copy link
Contributor

commented Dec 2, 2015

Good points.

(The first problem is simply a result of copying and pasting from http://greenbytes.de/tech/webdav/rfc7234.html#cache.directive.registry)

reschke added a commit that referenced this issue Dec 2, 2015

@reschke reschke closed this Dec 2, 2015

@rjb1000

This comment has been minimized.

Copy link
Author

commented Dec 2, 2015

Thanks. You worded it much better than I did :-)

reschke added a commit that referenced this issue Oct 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.