code: def is_gzippable(self, path):
          
          # First check if gzipping is allowed by the global setting
          if not getattr(settings, 'BAKERY_GZIP', False):
              return False
          # Then check if the content type of this particular file is gzippable
          whitelist = getattr(
              settings,
              'GZIP_CONTENT_TYPES',
              DEFAULT_GZIP_CONTENT_TYPES
          )
          return mimetypes.guess_type(path)[0] in whitelist
docs: Returns a boolean indicating if the provided file path is a candidate
          for gzipping.