1. opensymphony
  2. oscache

Commits

ltor...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 3d1c393

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

  • Participants
  • Parent commits db4f3a3
  • Branches default

Comments (0)

Files changed (1)

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

View file
         }
 
         // 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);
         }