Closed Kikobeats closed 2 years ago
Using a function memoizer. This is a necessary thing in this case because http agent only cache succesful/redirect responses.
In this very particular cases, the most common scenario is favicon is missing (404).
Since keyv doesn't store undefined, in that case we convert it to null and then back to undefined.
undefined
null
Using a function memoizer. This is a necessary thing in this case because http agent only cache succesful/redirect responses.
In this very particular cases, the most common scenario is favicon is missing (404).
Since keyv doesn't store
undefined
, in that case we convert it tonull
and then back toundefined
.