Comments (3)
It's not just a cache key; just as Vary does, it identifies the aspects of the request that helped select the response.
Also, Key is shorter. IIRC Roy has strong feelings about that...
WRT predicate syntax - do you have a concrete suggestion? Roy originally talked about a regex-like syntax (not full regex), but the http parameter syntax uses existing parsers.
from i-d.
Hmm.. well, Key is rather ambiguous really. Not sure what alternative name could work, however, so I guess I'll leave that one alone for now.
On the predicate syntax... I guess the thing that I'm struggling with the most is whether people will go through the trouble of actually using the predicates properly. As I said, we can barely get people to use Vary properly and that's just header field names, let alone value matching of specific parameters and so forth.
Question: what if we're selecting a Header field that uses a non-ascii encoding? For example Link with a UTF-8 title parameter. How would that work exactly? Given that different fields allow for different encoding schemes, would I just use something like w*="..." and depend on the implementation to decode everything prior to matching?
Comment: I do see that you changed the case for 'c' and 'n' .. thanks for that ..
from i-d.
Hopefully, Key will be automagically generated by implementations, rather than be set by hand by authors. I do think we might have a semicolon-delimited selector (i.e., use everything before the first parameter, stripping whitespace) in the next draft, so that this fairly common syntactic convention can be easily dealt with correctly. Slightly more out there would be qvalue comparison, but I don't know if we need that yet.
WRT non-ascii encoding -- while it's out there, I don't think it's likely in a selecting request header, and if it is, someone can always do an extension modifier.
from i-d.
Related Issues (20)
- How deep to go with Cookie aliasing
- Inventing a new binary format instead of using standards HOT 1
- Floats and Integers
- Cookie casing HOT 1
- Cookie non-string values
- bikeshed-length header: "decimal" number of octets?
- Add examples, move Appendix A contents to section 3 -- .well-known is being used below / HOT 1
- Link Hint to indicate resource class
- Correct usage of profiles within Link Hints
- Concerns regarding large Link headers with Link Hints HOT 1
- Timing concerns for Link Hints HOT 1
- How to serialize multiple "item" links?
- link-hint: broken link in boilerplate
- Wrong HTTP RFC ref'd HOT 1
- Representations of time based fields HOT 5
- Renaming draft-nottingham-binary-structured-headers to draft-nottingham-binary-structured-fields HOT 1
- Any chance of link-hints and linked-cache invalidation to become an RFC? HOT 2
- Token / key dictionary
- h3 negotiation
- IP reputation links
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i-d.