From cda07b4cfaf92fe82f58d3d6ca6e64ea40502b0d Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Tue, 1 Feb 2011 00:31:34 +0000 Subject: [1.2.X] Fixed #13283 -- Corrected CACHE_MIDDLEWARE_ANONYMOUS_ONLY's bad habit of setting Vary: Cookie on all responses and destroying cache efficiency. Thanks to natrius for the fix. Backport of r15381 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15382 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/cache/views.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/regressiontests/cache/views.py (limited to 'tests/regressiontests/cache/views.py') diff --git a/tests/regressiontests/cache/views.py b/tests/regressiontests/cache/views.py new file mode 100644 index 0000000000..9b72f03f56 --- /dev/null +++ b/tests/regressiontests/cache/views.py @@ -0,0 +1,4 @@ +from django.http import HttpResponse + +def home(request): + return HttpResponse('Hello World!') -- cgit v1.3