@ Override public ReadableInstant getLastModified ( ServletContext servletContext , HttpServletRequest request , HttpServletResponse response , Page page ) throws ServletException , IOException { List < News > news = NewsUtils . findAllNews ( servletContext , request , response , page ) ; return news . isEmpty ( ) ? null : news . get ( 0 ) . getPubDate ( ) ; }
The last modified time of news view is the pubDate of the most recent news entry .