title: How to configure cache for static resources in web.xml for Jetty?
body: <p>I was reading this:
  <a href="http://docs.codehaus.org/display/JETTY/LastModifiedCacheControl" rel="nofollow noreferrer">http://docs.codehaus.org/display/JETTY/LastModifiedCacheControl</a></p>
  
  <p>It says</p>
  
  <blockquote>
    <p>The Jetty default servlet allows the cache control header to
    be set for static content by using the cacheControl init parameter
    using:</p>
  </blockquote>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;init-param&gt;
      &lt;param-name&gt;cacheControl&lt;/param-name&gt;
      &lt;param-value&gt;max-age=3600,public&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>However, I am not sure that I am using the default servlet. At least
  such configuration is not in web.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;web-app&gt;
      &lt;display-name&gt;Wicket QuickStart&lt;/display-name&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;configuration&lt;/param-name&gt;
          &lt;param-value&gt;development&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;quickstart&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.apache.wicket.protocol.http.WicketServlet&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;applicationClassName&lt;/param-name&gt;
              &lt;param-value&gt;wicket.quickstart.WicketApplication&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;quickstart&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I would like to configure cache for static resources such as:</p>
  
  <p><code>/src/webapp/*</code>, i.e.: <code>/src/webapp/images, /src/webapp/css, /src/webapp/js</code>, etc.</p>
  
  <p>What should I add into my <code>web.xml</code>?</p>