Using a pressure-field mic, the flattest frequency response up to 12 kHz occurred when the mic was .250 inch above the surface, aiming down with the body of the mic perpendicular to the surface. Using a free-field mic, the flattest response occurred when the mic was angled down 45 degrees with the edge of the mic capsule touching the surface.
When you place a 1/2-inch diameter pressure-field mic closer than about .250 inch to the surface, with the body of the mic perpendicular to the surface, the acoustic inertance (mass) and acoustic compliance of the air volume under the mic diaphragm act as a resonator to boost high frequencies above 10 kHz. This effect is smaller if the diaphragm diameter is smaller.