Relative Content

Tag Archive for pythondjangodjango-rest-framework

Django REST Framework cached view returning 2 different payloads

I’m experiencing a strange issue with my Django REST Framework paginated list view, which utilizes a 2 hour cache. If I repeatedly make requests to the view’s endpoint, I am sometimes getting Response 1 (x bytes in size) and sometimes getting Response 2 (y bytes in size).