-
Notifications
You must be signed in to change notification settings - Fork 11
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
Query parameters #75
Comments
To explain why we chose the query parameter:
So that only leaves a query parameter on a GET request as a mechanism for passing the request data on the initial request. Re: client hints, I don't think that helps us as client hints is about discovering client capabilities, where this is about discovering server capabilities and shipping down request data specific to incxfer. To allow the content author to specify a URL format that would have to be part of the source url in the @font-face declaration. I'll have to look into that a bit more to see if that makes sense to do. |
On a related note, in the course of link fixing for the upcoming publication of the fully-merged IFT spec, we how hav e defined term @mnot the plan is to get network and perf review once that spec is published. Oh and I also updated the HTTP references so we now cite RFC9110, RFC9111 and RFC9112 |
Thank you for pointing this out. QUERY is perfect for what we are trying to do. The incxfer server is specified as being stateless so we meet the requirements to use QUERY. I imagine query will be CORS safelisted? Also do you have an idea on the timeline for QUERY to be available? |
It's available when you turn it on (or maybe when Fetch is updated to allow it, depending on your model). Why do you need safelisting? Presumably your goal is for the browser to do this work, not the sites themselves. |
Sorry, by safelisted, I mean will QUERY be considered a simple request (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests) like GET, HEAD, and POST are? This is important to incxfer since we want to avoid making a cors preflight request for performance reasons. |
Are you trying to create something here that can be used without modifying browsers? |
The intention is for browsers to implement this spec, so yes they will need to be modified. However, the spec is designed to not be tied to being implemented in a browser. It's possible that this could be also be implemented in non-browser contexts, for example in a mobile phone OS to incrementally load system fonts. I recently made a change where the http fetch algorithm is passed in as an input to the incxfer algorithm (see #69 for context) |
The query parameter was removed in #113. |
The IFT spec describes a format for use in query parameters of font URLs.
That's problematic, because it impinges on a server's authority over its own URLs.
The proper way to do this would be with request headers, probably Client Hints. If you don't want to do that, the next best thing would be to allow the site to dictate how to create a URL that contains the query information (e.g., using URI Templates).
The text was updated successfully, but these errors were encountered: