Friday, July 30, 2010

Re: Possible problem with GWT URL mechanism and cache

If you use Apache, the following .htaccess should work:

<Files *.nocache.*>
  ExpiresDefault "access"
</Files>

<Files *.cache.*>
        ExpiresDefault "now plus 1 year"
</Files>

See the Compiling and Debugging section of the dev guide:
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html

On Fri, Jul 30, 2010 at 2:35 AM, Ittai <etaizzz@gmail.com> wrote:
>
> Hi Chris,
> Thanks for your reply.
> I did not configure my web-server what so ever.
> Just used the GWT debug console from inside eclipse (with GWT plug-
> in).
> Can you maybe point me to where I can still check these
> configurations?
>
> Thanks,
> Ittai
> On Jul 29, 8:38 pm, Chris Conroy <con...@google.com> wrote:
> > This sounds like you misconfigured your webserver to serve up the
> > .nocache files as cached.
> >
> >
> >
> >
> >
> > On Thu, Jul 29, 2010 at 2:51 AM, Ittai <etai...@gmail.com> wrote:
> > > Hi,
> > > I'm encountering a problem, currently on IE8 and Win XP, where I can
> > > start up the debug mode on eclipse and enter the URL of my application
> > > on IE8:
> > >http://localhost:8080/myModule/myModule.html?params
> > > and everything will work properly.
> > > If I stop the debug, change the code and build the application again,
> > > of course new ADE43343.html file are created and when I enter the URL
> > > again in IE8 I see in the debug console in eclipse that a 404 message
> > > has been sent as the browser requested an incorrect URL.
> > > Which on the one hand remained the same(myModule.html), but on the
> > > other hand changed (generated html file).
> > > Another point to notice is that if I clear the cache of the browser
> > > all is well.
> > > Now, the issue is that I need this change from version to version
> > > (generated file to generated file) to be seemless.
> > > I tried adding the following tag to the myModule.html file:
> > > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
> > > but it did not seem to do the trick.
> > > Has anyone encountered this?
> > > Can you maybe point me to the right direction?
> > > Thanks a lot in advance
> > > ittai
> >
> > > --
> > > 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 athttp://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > Chris Conroy
> > Software Engineer
> > Google, Atlanta- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> 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.
>

--
Chris Conroy
Software Engineer
Google, Atlanta

--
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