Django comes with a few other pieces of middleware that can help optimize your applications’ performance:
- middleware.http.ConditionalGetMiddleware adds support for modern browsers to conditionally GET responses based on the ETag and Last-Modified headers.
- middleware.gzip.GZipMiddleware compresses responses for all moderns browsers, saving bandwidth and transfer time.