In case you have not yet found a solution here's one: http://www.armangal.com/How-to-create-a-simple-but-powerful-CDN-with-Google-App-Engine-%28GAE%29
On Oct 15, 1:30 am, emil <reall...@gmail.com> wrote: > I did include the static files element. I followed the tutorial very > closely. > > I will file a new issue. > > On Oct 14, 12:05 pm, "Jason (Google)" <apija...@google.com> wrote: > > > Did you explicitly indicate that these files are static in your > > appengine-web.xml file? By default, all HTML, JS, and other "static" files > > are treated as both static and resource files by App Engine, but if you > > include the <static-files> element, you can change > > this:http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... > > > Let me know if this has an effect, and if not, I'll look into it further. > > You can also file a new issue in the public tracker: > > >http://code.google.com/p/googleappengine/issues/list > > > - Jason > > > On Sun, Oct 11, 2009 at 1:46 PM, emil <reall...@gmail.com> wrote: > > > > I have been working on speeding up my app. > > > > After using the firebug's net console and the live headers plugin for > > > Firefox, i realized that the static files are being downloaded with > > > every new request. > > > > I increased the expiration date to one year, using the GWT > > > recommendations (http://code.google.com/appengine/docs/java/ > > > gettingstarted/staticfiles.html). > > > > The live headers started picking up the increased expiration date, but > > > all requests are still coming back with "200 OK" status, instead of > > > the desired "304 Not Modified". In other words, my static files are > > > being downloaded with every page refresh. > > > > I realized that the response headers do not include the Last-Modified > > > tag. In addition, the request headers do not have the "If-Modified- > > > Since" tag. > > > > My static files are not located in the WEB-INF/ and i get the same > > > result even if their names include .cache. > > > I am using the latest App Engine SDK (1.2.5) > > > > Below is a sample response tag for a static (jpg) file. > > > > ---------------------------------------------------------- > > > HTTP/1.x 200 OK > > > Date: Sun, 11 Oct 2009 20:21:02 GMT > > > Expires: Mon, 11 Oct 2010 20:21:02 GMT > > > Cache-Control: public, max-age=31536000 > > > Content-Type: image/jpeg > > > Server: Google Frontend > > > Content-Length: 102207 > > > X-XSS-Protection: 0 > > > ---------------------------------------------------------- > > > > I checked some popular GWT apps, and they all had the same problem. > > > > I understand why aggressive caching is not enabled by default, but > > > considering data limits and user experience, it is better if some > > > files are not being constantly downloaded. > > > > Do you have any suggestions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---