You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have to lock certain features behind the URL shortener. This is because the configuration within the URL can become too long and can thus exhaust Vercel's URL length limitations.
Ideas
We currently encode the configuration using jsurl2 and put it into the URL hash (which does not get sent to the server). This is quite verbose. An alternative could be to compress the config and then to place base64 into the URL.
This has additional benefits:
We no longer need to use the URL hash for the config
We can unlock all the features even for all URLs
We can remove some hacks in the code related to URL hashes
Size Research
The following is a quick check showing the character count differences between
the actual collector configuration without any encoding
the overhead that jsurl2 adds
the resulting character count when using gzip and base64
We should not break backwards compatibility though, neither for short links nor for full-path ones, so we probably need an alternative path scheme for the new strategy.
Why
We currently have to lock certain features behind the URL shortener. This is because the configuration within the URL can become too long and can thus exhaust Vercel's URL length limitations.
Ideas
We currently encode the configuration using jsurl2 and put it into the URL hash (which does not get sent to the server). This is quite verbose. An alternative could be to compress the config and then to place base64 into the URL.
This has additional benefits:
Size Research
The following is a quick check showing the character count differences between
Compression API Research
Potential issue: Currently the URL handling is fully synchronous. Some of the APIs linked in these articles would make the process asynchronous.
The text was updated successfully, but these errors were encountered: