Make list / grid view cookie work with caching