Closed sgunapu closed 13 years ago
In general your proposal is correct but how are you going to end up in a case that requires such a change?
I was implementing a resource concatenation servlet, which would send the most recent last modified date of all the resources to check individual resources for a 302.
There is concatenation support already built in the project. It's handled primarily by the ResourcePackage class. Do you need help how to use it?
Should this be ifModifiedSince/milliseconds >= lastModified/milliseconds?
if (ifModifiedSince != 0 && ifModifiedSince/milliseconds == lastModified/milliseconds) { logger.debug("Return with SC_NOT_MODIFIED, since " + ifModifiedSince + " == " + lastModified); response.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return; }