abstract fun getLastModified(request: HttpServletRequest): Long
Same contract as for HttpServlet's getLastModified method. Invoked before request processing.
The return value will be sent to the HTTP client as Last-Modified header, and compared with If-Modified-Since headers that the client sends back. The content will only get regenerated if there has been a modification.
request - current HTTP request
Return
the time the underlying resource was last modified, or -1 meaning that the content must always be regenerated
See Also
org.springframework.web.servlet.HandlerAdapter#getLastModifiedjavax.servlet.http.HttpServlet#getLastModified