Hacker News new | ask | show | jobs
by matips 1375 days ago
Sometimes cookies are used as they were designed - to store data in browser. For example 5etools-mirror-1.github.io. App without cloud storage or user account system. It stores your shortcuts in YOUR cookies, not in the server's DB.
2 comments

That would mean you are sending your shortcuts to the server on every request, localStorage would be much better in that case to save bandwidth.
That's why we have localStorage.
Local storage is also cleared on the same schedule, or else it could be used as a substitute for cookies.