Just use the "Live HTTP headers" Firefox add-on. Look for HTTP code "304 Not Modified" after refreshing a page. If you don't see it, your cache headers aren't being set properly.
It could be the case that your load-tester is not obeying HTTP or not providing accurate simulations of real-world scenarios. Even if you have lots of hits, many of them will be repeat hits from users who already have your static content cached locally. On Feb 18, 5:34 pm, Anekdotz <[email protected]> wrote: > From reading other threads I was under the impression that AppEngine > sets cache headers automatically if you define static directories in > app.yaml.. Am I misinformed? > > Arjun > > On Feb 18, 2:59 pm, "Ikai L (Google)" <[email protected]> wrote: > > > > > Do you have cache headers for your assets? This'll cause browsers not to try > > to redownload them for repeat visitors - this is a good practice in general > > for fast websites. > > > On Wed, Feb 17, 2010 at 7:11 PM, Anekdotz <[email protected]> wrote: > > > I recently stress tested my app with some troublesome results. While > > > the CPU, Datastore and Memcache quotas were barely consumed, my > > > Outgoing Bandwidth quota was used approximately 30 times as much. > > > I.e. for usage of 1% CPU I had used 28% of my bandwidth quota. > > > > The vast majority of the bandwidth was used for static files (image/ > > > css/javascript). I've heavily optimized most operations so this is > > > kind of annoying. Also, since my app does not store large files for > > > download, I feel like I'm "wasting" this resource with respect to the > > > others. > > > > I'm thinking of moving these files to another location, like storing > > > them on google sites or google code. Since these aren't optimized for > > > serving files I would like to use appengine to serve them until the > > > bandwidth quota is getting close to depleted and then dynamically > > > switching to the external services. For this I would need to > > > programmatically determine how much bandwidth is being used, but > > > unfortunately the Quota API seems to only provide CPU usage. > > > > Does anyone know of a way to do this? Or if you have any better ideas > > > on preserving bandwidth with respect to the other resources, I'm all > > > ears. > > > > Thanks, > > > Arjun > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google App Engine" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine%2Bunsubscrib > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. > > > -- > > Ikai Lan > > Developer Programs Engineer, Google App > > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
