ParametredHttpServlet.setNoCache(response);
ConfiguredHttpServlet.setNoCache(response);
        public final void send(HttpServletRequest request,                HttpServletResponse response) throws IOException,                ServletException {            String etag = getETag();            if (etag != null) {                String ifETag = request.getHeader(HTTP_IF_NONE_MATCH);                if (etag.equals(ifETag)) {                    response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);                    return;                }            }            String hash = getHash();            if (hash != null) {                String ifHash = request.getHeader(HTTP_IF_NOT_HASH);                if (etag.equals(ifHash)) {                    response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);                    return;                }            }            long lastModified = getLastModified();            if (lastModified > 0) {                long ifModifiedSince = request                        .getDateHeader(HTTP_IF_MODIFIED_SINCE);                if (ifModifiedSince > 0) {                    if (ifModifiedSince >= lastModified) {                        response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);                        return;                    }                }            }            byte buf[] = getBuffer();            response.setContentType(mimeType);            byte gzip[] = getGZipedBuffer();            if (gzip != null) {                if (hasGzipSupport(request)) {                    setGzipContentEncoding(response);                    buf = gzip;                }            }            if (noCache) {                if (LOG.isDebugEnabled()) {                    LOG.debug("Set no cache for response.");                }                ParametredHttpServlet.setNoCache(response);            } else {                ExpirationDate expirationDate = getDefaultExpirationDate();                if (expirationDate != null) {                    expirationDate.sendExpires(response);                }                if (lastModified > 0) {                    response.setDateHeader(HTTP_LAST_MODIFIED, lastModified);                }            }            response.setContentLength(buf.length);            if (etag != null) {                response.setHeader(HTTP_ETAG, etag);            }            if (hash != null) {                response.setHeader(HTTP_HASH, hash);            }            OutputStream out = response.getOutputStream();            out.write(buf);        }