Jul 10, 2022
I mostly like the code, using the window cache object is a really good idea. Room for improvement: use httpclient context instead of a request parameter to tell if a request has to be cached or not, use a Map fallback as a cache storage for unsupported clients, add a TTL.