GWT Caching of files

322 views
Skip to first unread message

EMan

unread,
Feb 6, 2012, 11:36:34 AM2/6/12
to google-we...@googlegroups.com
I am having issues relating to GWT caching of files. if I roll out a new version of my application (via a war file deployed to my jetty server).  I am able to bring up chrome and everything looks ok.  But if I need to rollback the version (redeploy an older war file), then I get all sorts of serialization errors.

I am assuming this is because the new files in my browser cache take precedence over my reverted war files files.  Is there a way to avoid this?  Has anyone encountered this problem?

Thanks.

Thomas Broyer

unread,
Feb 6, 2012, 3:41:02 PM2/6/12
to google-we...@googlegroups.com
Your browser asks for the no cache.is with an If-Modified-Since header, so once you get a fresher file you cannot get back an older one. You should "touch" your no cache.js file so it has a later modification date.

Dave

unread,
Feb 7, 2012, 9:43:04 AM2/7/12
to Google Web Toolkit
Thomas, what do you mean by "touch" your no cache.js file? I have
this Chrome caching issue not only when rolling back, but also when
deploying new version. Is there a way to do this via ant or during
the GWT compile? My ant compile looks like this.

<target name="GWTCompiler" depends="compile" description="Run GWT
compiler">
<java fork="true" classname="com.google.gwt.dev.Compiler"
failonerror="true">
<jvmarg line="-Xmx512m"/>
<classpath>
<pathelement location="${lib}/gwt-user.jar"/>
<pathelement location="${lib}/gxt-2.2.5-gwt22.jar"/>
<pathelement location="${external_lib}/gwt-2.4.0/gwt-
dev.jar"/>
<path location="${src}"/>
<path location="${gwt_home}"><fileset dir="$
{gwt_home}" includes="*.jar"/></path>
</classpath>
<arg value="-logLevel"/>
<arg value="WARN"/>
<arg value="-localWorkers"/>
<arg value="4"/>
<arg value="-war"/>
<arg value="${gwt_compile_outputdir}"/>
<arg value="-style"/>
<arg value="Detailed"/>
<arg
value="com.artisan.clientReporting.ClientReportingMatrix"/>
</java>
</target>

Filipe Sousa

unread,
Feb 7, 2012, 11:53:40 AM2/7/12
to google-we...@googlegroups.com

Juan Pablo Gardella

unread,
Feb 7, 2012, 12:10:56 PM2/7/12
to google-we...@googlegroups.com
Muy buena

El 7 de febrero de 2012 13:53, Filipe Sousa <nat...@gmail.com> escribió:

--
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/-/-OQFcNlv6vIJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages