Minimal Set of files for deployment on web server for gwt1.4 application

4 views
Skip to first unread message

Neeraj Upreti

unread,
Oct 30, 2007, 3:48:55 AM10/30/07
to Google Web Toolkit
Hi all,

When i compile my gwt1.4 application i get the following files-

a set of ".cache.html" files, a set of ".cache.js" files , a
nocache.js file, gwt.js file, a png file, a rpc file, and a set
of .cache.xml files and other application resources.

I want to know what is the minimal set of files required to deploy
the application on the web server.
Do I need to include all of the files mentioned above?

or some files can be skipped?

Please help me in this regard..

Thanks in advance,
Neeraj

Isaac Truett

unread,
Oct 30, 2007, 9:06:24 AM10/30/07
to Google-We...@googlegroups.com
I filter out the following in my build:

*.cache.xml
*.cache.js
*-xs.nocache.js
gwt.js
hosted.html

Neeraj Upreti

unread,
Oct 30, 2007, 9:46:09 AM10/30/07
to Google Web Toolkit
Thanks very much .. it worked .. I was able to cut the size of deploy
files by about 2.5 MB ..

Neeraj

On Oct 30, 6:06 pm, "Isaac Truett" <itru...@gmail.com> wrote:
> I filter out the following in my build:
>
> *.cache.xml
> *.cache.js
> *-xs.nocache.js
> gwt.js
> hosted.html
>

> On 10/30/07, Neeraj Upreti <neeraj.upret...@gmail.com> wrote:
>
>
>
>
>
> > Hi all,
>
> > When i compile my gwt1.4 application i get the following files-
>
> > a set of ".cache.html" files, a set of ".cache.js" files , a
> > nocache.js file, gwt.js file, a png file, a rpc file, and a set
> > of .cache.xml files and other application resources.
>
> > I want to know what is the minimal set of files required to deploy
> > the application on the web server.
> > Do I need to include all of the files mentioned above?
>
> > or some files can be skipped?
>
> > Please help me in this regard..
>
> > Thanks in advance,

> > Neeraj- Hide quoted text -
>
> - Show quoted text -

Eric Ayers

unread,
Oct 30, 2007, 1:19:38 PM10/30/07
to Google Web Toolkit
I asked around here amongst the GWT team here about this optimization.

The *.cache.js files are mirrors of the *.cache.html file (the latter
are needed because IE can't handle compressed Javascript properly)

Check out the Knowledge Base http://code.google.com/support/bin/answer.py?answer=77858&topic=13006

In a nutshell, this trick saves you space on the server, but you may
be able to get faster load times on non-IE browsers by leaving the
*.cache.js files intact.

-Eric.

Neeraj Upreti

unread,
Nov 5, 2007, 8:12:50 AM11/5/07
to Google Web Toolkit
Hi Eric,

Can you tell me the use of gwt.js and png file created in the
compilation process.

Neeraj

On Oct 30, 10:19 pm, Eric Ayers <gwt.team.zun...@gmail.com> wrote:
> I asked around here amongst the GWT team here about this optimization.
>
> The *.cache.js files are mirrors of the *.cache.html file (the latter
> are needed because IE can't handle compressed Javascript properly)
>

> Check out the Knowledge Basehttp://code.google.com/support/bin/answer.py?answer=77858&topic=13006

Eric Ayers

unread,
Nov 5, 2007, 9:40:29 AM11/5/07
to Google-We...@googlegroups.com
Hi Neeraj,

The 'gwt.js' file is for compatibility with projects that were created before the 1.4 release.  It includes an alternative way to bind one of the '.cache' files to your browsers/locale combination.

I do not see a .png file when I create a new project and compile it.  That .png file is probably copied from your 'public' directory if you have put some images in there that go along with your host page.

I do see a file named 'clear.cache.gif' that is an image just 1 pixel wide that is clear and is used to implement the image clipping in the Image class.

-Eric.

Freeland Abbott

unread,
Nov 5, 2007, 9:50:44 AM11/5/07
to Google-We...@googlegroups.com
If Neeraj's project defines an ImageBundle, that's another likely source of the .png "created in the compile process."  If that's it, the bundle is basically a composite image; GWT will download that in one shot instead of pulling the however-many images individually; it then uses cropping to separate the constituent sub-images.
Reply all
Reply to author
Forward
0 new messages