if(pageContext.getConfig().debug())pageContext.getDebugger().setOutput(false);
HttpServletResponse rsp = pageContext.getHttpServletResponse();
// generate cache resource matching request object
CacheItem ci = generateCacheResource(null,false);
// use cached resource
if(ci.isValid(timespan)){ //if(isOK(cacheResource)){
if(pageContext. getHttpServletResponse().isCommitted()) return;
OutputStream os=null;
try {
ci.writeTo(os=getOutputStream(),ReqRspUtil.getCharacterEncoding(pageContext,rsp));
//IOUtil.copy(is=cacheResource.getInputStream(),os=getOutputStream(),false,false);
}
finally {
IOUtil.flushEL(os);
IOUtil.closeEL(os);