Editorial question28.8K views4,285 votes0 answers2,027 following
AI-generatedDRF cache_page URL-only caching behavior with authenticated PageNumberPagination responses
Django REST Framework's cache_page decorator caches responses by URL alone, without regard to the authenticated user or query parameters such as page_size . When combined with PageNumberPagination —which defaults to 100 items and clamps to max_page_size —this raises an unresolved design tension: the same URL can represent different data slices and different