What is the correct middleware ordering in Mezzanine for django.middleware.gzip.GZipMiddleware?
It is my understanding that django.middleware.cache.UpdateCacheMiddleware normally goes before GZipMiddleware like this:
MIDDLEWARE_CLASSES = (
"django.middleware.cache.UpdateCacheMiddleware" # Mezzanine uses "mezzanine.core.middleware.UpdateCacheMiddleware"
"django.middleware.gzip.GZipMiddleware",
....
)
However, Mezzanine uses its own UpdateCacheMiddleware with two-phase rendering, so if I put it before GZipMiddleware, the {% nevercache %} blocks don't render properly.
The {% nevercache %} blocks render correctly when I put GZipMiddleware first, but I wanted to confirm that this was the correct approach and plays nicely with Mezzanine's UpdateCacheMiddleware.
MIDDLEWARE_CLASSES = (
"django.middleware.gzip.GZipMiddleware",
"mezzanine.core.middleware.UpdateCacheMiddleware"
....
)