1
0
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:
nsasaki128
2019-06-25 15:15:00 +09:00
committed by Mariusz Felisiak
parent 8454f6dea4
commit a289e79679
5 changed files with 18 additions and 7 deletions

View File

@@ -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'},
)