4 ms·
TIL: The limit of 255 characters in any distinct part of an URL seems to be purely fictional. I've always assumed it was a very clear cut standard, but now I ca
by yetanother12345 3y ago
TIL: The limit of 255 characters in any distinct part of an URL seems to be purely fictional. I've always assumed it was a very clear cut standard, but now I can't find it neither in the RFC [0,1] nor the standard [2]
So, as we're down to opinion here, my personal pet peeve is: keep 'em short.
[0] https://www.ietf.org/rfc/rfc1738.txt https://www.ietf.org/rfc/rfc1738.txt
[1] https://datatracker.ietf.org/doc/html/rfc3986 https://datatracker.ietf.org/doc/html/rfc3986
[2] https://url.spec.whatwg.org/ https://url.spec.whatwg.org/
- johnny22 3y agoThe 255 limit would have come from distinct segments being limited by say the backing linux server rather than the web server itself
- mhio 3y agoOr DNS for the hostname, which becomes 253 characters for us meatbags. https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4 https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4