fastapi-cache icon indicating copy to clipboard operation
fastapi-cache copied to clipboard

Overriding `Cache-Control` header

Open joshfermin opened this issue 10 months ago • 1 comments

Hello, is there any way to override the cache-control header?

I am running into an issue where I need to clear the cache key on update, but since fastapi-cache is setting the cache-control header I am getting a 200 OK (from disk cache) response. I need to be able to override the cache-control header so that we don't keep stale data

joshfermin avatar Aug 07 '23 17:08 joshfermin