undici icon indicating copy to clipboard operation
undici copied to clipboard

[http-cache]: handle cache invalidation of location and content-location headers

Open Uzlopak opened this issue 1 year ago • 1 comments

this is a follow up to the follow up.

Uzlopak avatar Oct 15 '24 10:10 Uzlopak

@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 avatar Oct 18 '24 13:10 ivan-tymoshenko

@ivan-tymoshenko @ronag

I guess this can be closed, because you took care of ideas?

Uzlopak avatar Nov 21 '24 10:11 Uzlopak

I think so

mcollina avatar Nov 21 '24 15:11 mcollina