undici
undici copied to clipboard
[http-cache]: handle cache invalidation of location and content-location headers
this is a follow up to the follow up.
@Uzlopak What do you think about making this method more generic for calling it outside of the undici package. I have two suggestions:
- pass an array of paths instead of one path. This might be useful for another cache store types if user wants to delete mutiple paths. These storages might perform a batch delete operation much faster than deleting it one by one.
- pass also an http method and not only the path. For most cases users would want to cache only GET/HEAD requests, but still someone might want to cache other methods, so it would be nice to have an ability to delete routes from the cache independenty
@ivan-tymoshenko @ronag
I guess this can be closed, because you took care of ideas?
I think so