can i specify the filename when compiling ?

58 views
Skip to first unread message

wahaha

unread,
Aug 10, 2012, 3:51:07 AM8/10/12
to google-we...@googlegroups.com
there are 3 files after GWT's compiling:
hosted.html
moduleName.nocache.js
randomName.cache.html

i want to ask that can we specify the name of "randomName.cache.html" as we like ?

Paul Robinson

unread,
Aug 10, 2012, 4:15:11 AM8/10/12
to google-we...@googlegroups.com
It's only safe for the browser to cache the file *because* it's got a name that changes every time something changes. Setting the name to something fixed would defeat this.

Paul

Jens

unread,
Aug 10, 2012, 4:18:27 AM8/10/12
to google-we...@googlegroups.com
I don't think so. Maybe its possible with a custom linker. But I wouldn't recommend it. You need some random aspect in the file name because when you release a new version of your webapp the browser has to download the new randomName.cache.html. If "randomName" isn't random be some mean between app versions then the browser would use the outdated cached version.

-- J.

wahaha

unread,
Aug 11, 2012, 8:49:27 PM8/11/12
to google-we...@googlegroups.com
actually i need this.
my program is not a B-S mode program,i don't need to worry about the problem for cache.
i just need to specify the file name when compiling,so the update patch can be smaller cause of  the content of the file "moduleName.nocache.js" keep the same.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages