Any time a user / browser requests the file it is counted as a request, and
logged in the summary page. To limit the amount of request made from the
user's browser you can cache <http://en.wikipedia.org/wiki/Web_cache> the
file in the user's browser.

To do this on Google App Engine add a *default_expiration *to your *app.yaml
* file:

*default_expiration: "10m"*
*
*
- url: /images
  static_dir: static/images

The *"10m"* will cache files in your static/images folder for 10 minutes.
If one user loads the page 100 times in 10 minutes it will only show up as
one request. After 10 minutes the browse will make a new request adding
another download to your summary page. You can extend the time by changing
the* default_expiration: "1d" *<- for example will cache files for one day.

Here's full documentation for app.yaml settings:
http://code.google.com/appengine/docs/python/config/appconfig.html#Static_File_Pattern_Handlers

Does that answer your question?

- Kyle


On Tue, Nov 15, 2011 at 9:58 PM, Kate <[email protected]> wrote:

> Thanks Kylie, but why are these files still showing as "requests" on
> my summary page?
>
>
> On Nov 15, 2:44 pm, Kyle Finley <[email protected]> wrote:
> > - url: /images
> >   static_dir: static/images
> >
> > *Yes*
> >
> > - url: /images/ads
> >   static_dir: static/images/ads  /* that is do subdirectories have the be
> > explicitly listed
> >
> > *No, all subdirectories will be included:*
> > *images/ads*
> > *images/cats*
> >
> > - url /stylesheets
> >  static_dir /stylesheets /* that is can you have more than one virtual
> static_dir?
> > */
> >
> > *Yes*
> >
> > - Kyle
>
> --
> 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.
>
>

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

Reply via email to