Skip to content

Commit c364770

Browse files
authored
Mention @gzip_page explicitly as a reason why the toolbar doesn't show up (#2392)
Closes #2375.
1 parent 7475cf0 commit c364770

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/tips.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ requests and return responses. Putting the debug toolbar middleware *after* the
1616
``FlatpageFallbackMiddleware`` middleware, for example, means the toolbar will
1717
not show up on flatpages.
1818

19+
The response must also not be compressed;
20+
:func:`~django.views.decorators.gzip.gzip_page` and ``GZipMiddleware`` listed
21+
after the toolbar in ``MIDDLEWARE`` are common causes.
22+
1923
Check your browser's caching
2024
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2125

0 commit comments

Comments
 (0)