summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/middleware.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 8f88b6686c..d256347577 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -411,6 +411,12 @@ Middleware ordering
Here are some hints about the ordering of various Django middleware classes:
+#. :class:`~django.middleware.security.SecurityMiddleware`
+
+ It should go near the top of the list if you're going to turn on the SSL
+ redirect as that avoids running through a bunch of other unnecessary
+ middleware.
+
#. :class:`~django.middleware.cache.UpdateCacheMiddleware`
Before those that modify the ``Vary`` header (``SessionMiddleware``,