Compress metrics HTTP resource when enabled. Contributed by Nick @ Beeper.