Hi,
after the problem raised in the forum :
http://forum.springframework.org/viewtopic.php?t=1385 , I checked this a
bit and noticed that all the mechanisms developped in the
DispatcherServlet to get the last modification date and such were
relying on the fact that getLastModified in called on DispatchedServlet,
ok. However, the jsr152 implementation of tomcat (which is probably a
common one) call the getLastModified in the
service(HttpServletRequest,HttpServletResponse), which is overidden in
the FrameworkServlet, and no code related to getLastModified is called
in the overidden method.
I propose to reenable the getLastModified call by adding in the
service method of FrameworkServlet the code used to handle the last
modification, hance the proposed attached patch.
If I haven't forgot something, which would explain that it should work
as it is now but that I and the forum poster didn't see, please yell at
me, else I'll open a jira issue to remember it.
Regards
Olivier
|