added devicePixelRatio to cookie