(Hopefully) small algorithm to determine whether or not to GZIP an HTTP response