Using this nginx config we can check a type of users device (iPhone, iPod, iPad, Android mobile, Android tablet), proportionaly increase the size of requested image and cache it.