Is your feature request related to a problem? Please describe.
Currently, the service will shorten a URL but has no guarantees that it is unique. This means that a shortened URL may correlate with more than one full-length URL - Overwriting the older URLs it was generated for.
Describe the solution you'd like
It would be great to ensure that all URLs generated are unique - This would make the service a lot more useful.
Perhaps this can be done by checking if the shortened URL already exists and regenerating a shortened URL if so.
Is your feature request related to a problem? Please describe. Currently, the service will shorten a URL but has no guarantees that it is unique. This means that a shortened URL may correlate with more than one full-length URL - Overwriting the older URLs it was generated for.
Describe the solution you'd like It would be great to ensure that all URLs generated are unique - This would make the service a lot more useful.
Perhaps this can be done by checking if the shortened URL already exists and regenerating a shortened URL if so.