We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f90d523 commit 1a9b1ddCopy full SHA for 1a9b1dd
django/thunderstore/api/utils.py
@@ -29,6 +29,11 @@ class PublicCacheMixin:
29
"""
30
A mixin for caching public API endpoints.
31
32
+ IMPORTANT: Must be before generic DRF view base classes in the inheritance list.
33
+
34
+ Example:
35
+ class ProductListView(PublicCacheMixin, ListAPIView):
36
37
1. Caching: Applies 'public' Cache-Control headers to the response.
38
2. Security: Explicitly clears 'authentication_classes' and 'permission_classes'
39
to override global DRF settings in settings.py. This ensures the endpoint is strictly
0 commit comments