title: Spring WebContentInterceptor is not adding cacheSeconds to header
body: <p>I am trying to add configuration in spring mvc so that my static contents like js, images will be cached by browser. I have add the following in dispatcher-servlet.xml</p>
  
  <pre><code>&lt;beans&gt;
  .............
      &lt;mvc:interceptors&gt;
          &lt;bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor"&gt;
              &lt;property name="cacheSeconds" value="31556926"/&gt;
              &lt;property name="useExpiresHeader" value="true"/&gt;
              &lt;property name="useCacheControlHeader" value="true"/&gt;
              &lt;property name="useCacheControlNoStore" value="true"/&gt;
          &lt;/bean&gt;
      &lt;/mvc:interceptors&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>But i still dont see the caching is enabled. I see the following in the browser debugger where it says Cache-Control:"no-cache". </p>
  
  <p><a href="https://i.stack.imgur.com/bzf6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bzf6e.png" alt="Firefox Debugger"></a></p>
  
  <p>Please help !!!</p>