HTTP_ACCEPT should be part of the cache key
This commit is contained in:
parent
3614e0656c
commit
3c50466bd8
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class CachedViewSetMixin:
|
||||||
return cache_key
|
return cache_key
|
||||||
|
|
||||||
def get_cache_params(self, request):
|
def get_cache_params(self, request):
|
||||||
return ''
|
return request.META.get('HTTP_ACCEPT', '')
|
||||||
|
|
||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
do_cache = request.method in ('GET', 'HEAD', 'OPTIONS')
|
do_cache = request.method in ('GET', 'HEAD', 'OPTIONS')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue