backporting #4918 to 3.2 stable; adding extra test for accept header given by googlebot