=P
But, anyway, according to that doc, it should work...
To help prevent caching, the code in gwt.js actually appends an HTTP GET parameter on the end of file name containing a unique timestamp.
The browser interprets this as a dynamic HTTP request, and thus should not load the file from cache.
But it does not say it works everytime...
I'll look into the tomcat config.
Thanks,
ERS
On Tue, Jul 31, 2012 at 12:51 AM, Ernani Sottomaior <ernanisottomaior@gmail.com> wrote:
Thanks J.
but I remember reading that gwt apps are meant to be cached... (early in version 1.3 - 1.4)
My app now compiles as 780k .cache.html files (even using deferred-binding).
This approach would download 780k for each tab opened in the browser... is this correct?
I thought these generated files would be cached by browsers.
I was assuming the compiler generated unique filenames every new compilation...
The main JS would be downloaded everytime (small file) and then would get from cache (or download) those 780k.
If the filename changed, it would not be in browser's cache. Can GWT work this way? Why not?
Thanks
ERS
On Mon, Jul 30, 2012 at 3:19 AM, Johannes Barop <jb@barop.de> wrote:
Hello,
you have to configure your server to tell the clients to never cache .nocache.html files.
See: https://developers.google.com/web-toolkit/doc/latest/FAQ_DebuggingAndCompiling#What%27s_with_all_the_cache/nocache_stuff_and_weird_filenames
J.
Am 29.07.2012 um 04:55 schrieb ERS:
> Hello all.
>
> I'm facing an issue almost everytime I upload a new version of my app
> to tomcat.
> The browser does not detect that there is a new app ... and the RPC
> calls fail.
> Then I have to click refresh a few times (or CTRL+F5) ... then the
> browser gets the new version.
> But end-users dont know that and may quit early...
>
> Is it normal? What should I do during deployment?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment