easymode.middleware

Google Analytics

Easymode has middleware to support caching in combination with google analytics. Google analytics updates a session cookie on each request. Because django’s SessionMiddleware places cookie in it’s vary header, you will save every single request to the cache if you use it.

class easymode.middleware.NoVaryOnCookieSessionMiddleWare

Works like django’s django.middleware.SessionMiddleWare, but it does not add cookie to the vary header. You need this if you use google analytics and want to use django site caching.

Table Of Contents

Previous topic

Easyfilters

Next topic

Injecting extra data into the XSLT