Fix infinite redirect loop on logout caused by django caching