educative.io

Reusing expired keys

Just a comment.

Section 10 says:

  • After removing an expired link, we can put the key back in the key-DB to be reused.

That’s probably not a good idea - somebody with a short link for the expired URL may access the new URL once that key is reused, which can cause privacy issues.

Keys are cheap and abundant, there is no advantage in reusing them.

2 Likes

I am agree with you on this as allowing same key to another url may give different meaning to url that is used currently. Instead mark key is expired should never use back.

1 Like