mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23755 -- Added support for multiple field names in the no-cache Cache-Control directive to patch_cache_control().
https://tools.ietf.org/html/rfc7234#section-5.2.2.2
This commit is contained in:
parent
2a6f45e08e
commit
ed112fadc1
5 changed files with 43 additions and 8 deletions
6
tests/cache/tests.py
vendored
6
tests/cache/tests.py
vendored
|
@ -1705,6 +1705,12 @@ class CacheUtils(SimpleTestCase):
|
|||
('', {'no-cache': 'Set-Cookie'}, {'no-cache=Set-Cookie'}),
|
||||
('no-cache=Set-Cookie', {'no_cache': True}, {'no-cache'}),
|
||||
('no-cache=Set-Cookie,no-cache=Link', {'no_cache': True}, {'no-cache'}),
|
||||
('no-cache=Set-Cookie', {'no_cache': 'Link'}, {'no-cache=Set-Cookie', 'no-cache=Link'}),
|
||||
(
|
||||
'no-cache=Set-Cookie,no-cache=Link',
|
||||
{'no_cache': 'Custom'},
|
||||
{'no-cache=Set-Cookie', 'no-cache=Link', 'no-cache=Custom'},
|
||||
),
|
||||
# Test whether private/public attributes are mutually exclusive
|
||||
('private', {'private': True}, {'private'}),
|
||||
('private', {'public': True}, {'public'}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue