Set Last-Modified response header and handle If-Modified-Since in ResourceServlet.