Thursday, June 27, 2013

Re: GWT 2.4 & Jetty nocache.js files

hey can I use the same code for my application? what else will change if I have to use for mine? This filter will help us with cache issues right?

On Wednesday, July 18, 2012 10:57:41 AM UTC-5, brent...@gmail.com wrote:
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, brent...@gmail.com wrote:

In this gwt web 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 unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment