I figured out the answer. All I had to do was add this to my web.xml file.
<servlet> <servlet-name>default</servlet-name> <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> <init-param> <param-name>cacheControl</param-name> <param-value>public, max-age=0, must-revalidate</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/myApp/*.nocache.js</url-pattern> </servlet-mapping> Thanks! On Wednesday, July 18, 2012 10:50:15 AM UTC-4, [email protected] wrote: > > In this gwt > web<http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html> > says > to place a *.htaccess config file like this to avoid caching main > javascript gwt application. > > <Files *.nocache.*> > ExpiresActive on > ExpiresDefault "now" > Header merge Cache-Control "public, max-age=0, must-revalidate" > </Files> > > <Files *.cache.*> > ExpiresActive on > ExpiresDefault "now plus 1 year" > </Files> > > Is there a way to do the same with Jetty ? (whithout needing to use httpd > jetty module) > > We're using an embedded jetty container version 7.3.1.v20110307. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/--Zb9sbWUMwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
