The default argument for the shouldGzip function parameter is a function that always returns true, so the default is to gzip.

The reason for the existence of the parameter is some people want to avoid gzipping resources that are already compressed, eg zip files, images etc.  Rather than endless debates over what content types should or shouldn't be in those lists, if you care, here's a callback that lets you care.