I am considering using localStorage to store recent searches.

Pros:
- Privacy friendly, backend doesn't track what you search
- Quicker to load results for previous searches

Cons:
- I can't think of any. If you can, please reply to this post! #pixeldev

Follow

@dansup
a) if that''s the only thing you use it for, you'll need to add a GDPR cookie warning just for that
b) if new content related to the search term becomes available, it will not be shown in the cached results

Sign in to participate in the conversation
ieji.de

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!