code: public static boolean isRequestGzippable(HttpServletRequest req, JawrConfig jawrConfig) {
  		boolean rets;
  		// If gzip is completely off, return false.
  		if (!jawrConfig.isGzipResourcesModeOn())
  			rets = false;
  		else if (req.getHeader("Accept-Encoding") != null && req.getHeader("Accept-Encoding").contains("gzip")) {
  
  			// If gzip for IE6 or less is off, the user agent is checked to
  			// avoid compression.
  			if (!jawrConfig.isGzipResourcesForIESixOn() && isIE6orLess(req)) {
  				rets = false;
  				if (LOGGER.isDebugEnabled()) {
  					LOGGER.debug("Gzip enablement for IE executed, with result:" + rets);
  				}
  			} else
  				rets = true;
  		} else
  			rets = false;
  		return rets;
  	}
docs: Determines whether gzip is suitable for the current request given the
  current config.
  
  @param req
  @param jawrConfig
  @return