How to handle HTTP response caching on asp.net core and rest api?

1.9k Views Asked by At

We are creating a rest api in our asp.net core project.

For managing the cache we use the response cache middleware and the responseccache attribute that adds these headers to the response :

Cache-Control: public,max-age=2592000

Now what I would like to do is to handle the "ETag" header or "Last Modified" and "If modified since" headers.

Is there any package available for simplifying the implementation of these headers ?

Here I want to manage cache to just the headers, there is a lot of solution for generating Etag but it's still executing server side code.

0

There are 0 best solutions below