purl-spec icon indicating copy to clipboard operation
purl-spec copied to clipboard

Clarify the formal requirement on max length

Open prabhu opened this issue 5 months ago • 1 comments

We recently learned that a platform has a limit of 255 characters on the length of a purl. Please formally clarify any requirement on max length (even if it is unlimited). Include more compliance tests for length.

prabhu avatar Feb 06 '24 07:02 prabhu

There are no specified max length in the spec indeed, and none in the URL specs either. The practical URL length limits are from tools. 255 sounds super short.

If these articles are right, then we should likely come with a sensible recommend max, something like 1000 ish or 2000 ish or powers of 2.

  • https://saturncloud.io/blog/what-is-the-maximum-length-of-a-url-in-different-browsers/
  • https://www.sistrix.com/ask-sistrix/technical-seo/site-structure/url-length-how-long-can-a-url-be

What is your recommendation? Should it be recommended or mandated?

pombredanne avatar Mar 08 '24 14:03 pombredanne