drf-extensions icon indicating copy to clipboard operation
drf-extensions copied to clipboard

How to force serve from Database [Cache-Control: no-cache not working]

Open ZuSe opened this issue 7 years ago • 0 comments

Hi guys,

we are using drf-extensions in our project. We are using for some of our Viewsets the ReponseCacheandETAGMixin.

In some special cases we need to allow the client to fetch the newest entry from the database instead of getting the requests served from the cache.

Is there any way to achieve this in a nice way? I have tried to use the Cache-Control header in my requests, but it's ignored and the response is still served from the cache.

Best, Patrick

ZuSe avatar Jul 06 '17 08:07 ZuSe