chibisov / drf-extensions

DRF-extensions is a collection of custom extensions for Django REST Framework
http://chibisov.github.io/drf-extensions/docs
MIT License
1.47k stars 208 forks source link

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

Open ZuSe opened 7 years ago

ZuSe commented 7 years ago

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