Commits

Anonymous committed 3d1c393

Only send last modified header, if a header is set.
Issue number: CACHE-116
Submitted by: Lars Torunski

Comments (0)

Files changed (1)

src/core/java/com/opensymphony/oscache/web/filter/ResponseContent.java

         }
 
         // Don't add in the Last-Modified header in a fragment of a page
-        if ((!fragment) && (response instanceof HttpServletResponse)) {
+        if ((!fragment) && (lastModified != -1) && (response instanceof HttpServletResponse)) {
             ((HttpServletResponse) response).setDateHeader(CacheFilter.HEADER_LAST_MODIFIED, lastModified);
         }