Permalink
Browse files

using a middleware ConditionalGetMiddleware which will take care of s…

…etting the appropriatecontent-length header and value.
  • Loading branch information...
1 parent 2ba52ee commit 45f0306ab2ebe31c29d75bd184b2f73f854e7148 @shsu shsu committed Oct 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 settings.py
View
@@ -102,6 +102,7 @@
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.middleware.http.ConditionalGetMiddleware',
)
IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')

0 comments on commit 45f0306

Please sign in to comment.