Skip to content

Instantly share code, notes, and snippets.

@joakime
Created December 14, 2011 21:37
Show Gist options
  • Save joakime/1478665 to your computer and use it in GitHub Desktop.
Save joakime/1478665 to your computer and use it in GitHub Desktop.
Configuring jetty's DefaultServlet's Cache-Control in web.xml
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
<init-param>
<param-name>cacheControl</param-name>
<param-value>max-age=3600,public</param-value>
</init-param>
</servlet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment