mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Fixed #30594 -- Added 'private' Cache-Control directive to never_cache() decorator.
This commit is contained in:
parent
8454f6dea4
commit
a289e79679
5 changed files with 18 additions and 7 deletions
|
@ -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'},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue