Commit 7f8e3b47 authored by robcast's avatar robcast

Servlet version 1.5.3b

- new getLastModified improves local caching of pages
parent bc7c85b9
......@@ -185,7 +185,8 @@ public class Scaler extends HttpServlet {
* @see javax.servlet.http.HttpServlet#getLastModified(javax.servlet.http.HttpServletRequest)
*/
protected long getLastModified(HttpServletRequest request) {
accountlog.debug("GetLastModified from " + request.getRemoteAddr());
accountlog.debug("GetLastModified from " + request.getRemoteAddr()
+ " for " + request.getQueryString());
long mtime = -1;
// create new request with defaults
DigilibRequest dlReq = new DigilibRequest();
......@@ -197,7 +198,6 @@ public class Scaler extends HttpServlet {
DocuDirectory dd = (DocuDirectory) f.getParent();
mtime = dd.getDirMTime() / 1000 * 1000;
}
logger.debug("last modified: "+mtime);
return mtime;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment