You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2009/12/14 15:44:51 UTC
Cache control wicket + jetty
Hi!
I was reading this:
http://docs.codehaus.org/display/JETTY/LastModifiedCacheControl
It says "The Jetty default servlet allows the cache control header to
be set for static content by using the cacheControl init parameter
using
<init-param>
<param-name>cacheControl</param-name>
<param-value>max-age=3600,public</param-value>
</init-param>
"
However, I am not sure that I am using the default servlet. At least
such configuration is not in web.xml:
<web-app>
<display-name>Wicket QuickStart</display-name>
<context-param>
<param-name>configuration</param-name>
<param-value>development</param-value>
</context-param>
<servlet>
<servlet-name>quickstart</servlet-name>
<servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>wicket.quickstart.WicketApplication</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>quickstart</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
How do you add cache configuretion there, for the static resources in
/src/webap/* (/src/webap/images, /src/webap/css, /src/webap/js, etc.)
?
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org