response.setHeader("Pragma", "public");
response.setDateHeader("Last-Modified", lastModified);
response.setHeader("Cache-Control", "PUBLIC, max-age=" + seconds + ", must-revalidate");
response.setHeader("Expires", httpDateFormat.format(calendar.getTime()));
if (request.getDateHeader("If-Modified-Since") > -1) response.sendError(HttpServletResponse.SC_NOT_MODIFIED);
else if ((in != null) && (in.available() > 0)) send(in, mimeType, response.getOutputStream(), width, height);
}
response.getOutputStream().close();
}
}