-
Notifications
You must be signed in to change notification settings - Fork 13
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
Specify version number in url #41
Comments
I'll also talk to the holepunch folks to see if versions in the URL is something they're still into. |
Thank you! I look forward to hearing what y'all decide. |
Another thing we could think about is putting the version in the header or under a special folder. Like This might also be useful for preserving the "origin" across versions so that sites could retain their localStorage and cookies and the such. |
I like the special folder idea
|
On a call with Joseph right now, we've decided that it would be more consistent with existing HTTP-using applications if the version number were given as a query parameter in the URL. For example:
This would make it easy to parse the URL into component parts using existing libraries and avoid special-casing in our URL-handling code. Would this be possible to implement? |
I would advise against putting the version into the querystring since it would break relative URLs. E.g. if you use If we use the querystrings like With another approach where we put the version into the I think the "special folder" option is the best here since it preserves relative URLs and keeps the origin the same between versions. E.g. |
Talking with Joseph now, and reading your comment, I understand your point. It seems like the hypercore |
|
Will it be possible to to specify a version number in a hyper url with the new version of hypercore?
The text was updated successfully, but these errors were encountered: