code: public boolean shouldSkip(@Nullable String contentType, @Nullable Integer contentLength) {
          if (contentType == null) {
              return true;
          }
          return !MediaType.isTextBased(contentType) || (contentLength != null && contentLength >= 0 && contentLength < compressionThreshold);
      }
docs: Determines if encoding should occur based on the content type and length.
  
  @param contentType   The content type
  @param contentLength The content length
  @return True if the content is compressible and larger than 1KB