Closed ilyaigpetrov closed 6 years ago
Hi, I couldn't find the docs for it anywhere, but a versioned dat URL looks like:
dat://KEY_HERE+VERSION_HERE/file.html
That is, the version is optionally specified by having a +
after the key and the version name before the path.
You can see it being used in modules that parse dat URLs
Thanks.
Interesting that version may not only be numeric, but also a string like latest
or weird c1
(according to test.js
).
Yeah, I haven't seen too much in relation to how versioning works. :/
dat://ff93418b1759242276eca588ebdff2b90da14d3ad9d444dbc9cc0b5bbbd5fafc?version=xx
may be not a good idea if you considerdat://ff93418b1759242276eca588ebdff2b90da14d3ad9d444dbc9cc0b5bbbd5fafc/index.html?version=xx
whereversion
query parameter is used inside index.html (index.html may be interpreted as a html page in some browser or over some http gateway).