Invalidate Cache based on other Operations
It would be great if a cached operations could be invalidated based on another operation by default.
GET: /products is cached with a long duration and is only invalidated by
Another way could be to invalidated based on HTTP verb. Eg invalidate all caches in api when a POST/PUT Api is called
Jone Polvora commented
I would like to read a custom parameter on header like "fresh: true" and read this header at inbound level in order to make a decision if remove the cache and call backend to update the cache. Today I'm forced to do all this by hand.
This would be an amazing improvement.
Right now you are forced to do this backend side
Robert de Veen commented
Alternative is to store/get a value in cache by key on the GET methods and to remove value from cache by key on the POST method.
What is the alternative here?