mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
This commit is contained in:
committed by
Mariusz Felisiak
parent
8454f6dea4
commit
a289e79679
@@ -478,5 +478,5 @@ class NeverCacheDecoratorTest(TestCase):
|
||||
r = a_view(HttpRequest())
|
||||
self.assertEqual(
|
||||
set(r['Cache-Control'].split(', ')),
|
||||
{'max-age=0', 'no-cache', 'no-store', 'must-revalidate'},
|
||||
{'max-age=0', 'no-cache', 'no-store', 'must-revalidate', 'private'},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user