mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #25490 -- Made the logout() view send "no-cache" headers.
This commit is contained in:
parent
37a5a36321
commit
adcf823359
3 changed files with 13 additions and 0 deletions
|
@ -770,6 +770,14 @@ class LogoutTest(AuthViewsTestCase):
|
|||
response = self.client.get('/logout/')
|
||||
self.assertIn('site', response.context)
|
||||
|
||||
def test_logout_doesnt_cache(self):
|
||||
"""
|
||||
The logout() view should send "no-cache" headers for reasons described
|
||||
in #25490.
|
||||
"""
|
||||
response = self.client.get('/logout/')
|
||||
self.assertIn('no-store', response['Cache-Control'])
|
||||
|
||||
def test_logout_with_overridden_redirect_url(self):
|
||||
# Bug 11223
|
||||
self.login()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue