pub-dev
pub-dev copied to clipboard
Sanitize/normalize search queries before checking the cache
The current search result cache logic uses the user-provided input query as part of the key. However, if the use adds random spaces or other filtered characters, we may use the same search terms eventually, but would fail to hit the cache on them.