[google-appengine] Re: Does static files count for outbound traffic?

2009-06-24 Thread Nick Johnson (Google)
Hi Mariano,

Yes, static files are included in your daily traffic quota. Bear in mind
that although App Engine does not provide last-modified or etag headers, it
does set Cache-Control and Expires headers, and you can control the
expiration time in app.yaml, so browsers should not re-request static
content until it expires.

-Nick Johnson

On Tue, Jun 23, 2009 at 11:15 PM, Mariano Benitez wrote:

>
> I do have some large static files, and given that appengine do not use
> eTags or another form of check it is always returning the entire
> files.
>
> If the static files count as part of the outgoing traffic quota (which
> I think it is reasonable), then either you implement eTag or another
> method of not returning the entire file if it was not modified.
>
> My other alternative is to implement my handlers, move all to dynamic,
> and handle the 304 myself. I don't like the idea but I have no choice.
>
> Regards,
> MAriano
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Does static files count for outbound traffic?

2009-06-24 Thread Barry Hunter

On 24/06/2009, Nick Johnson (Google)  wrote:
> Hi Mariano,
>
> Yes, static files are included in your daily traffic quota. Bear in mind
> that although App Engine does not provide last-modified or etag headers, it
> does set Cache-Control and Expires headers, and you can control the
> expiration time in app.yaml, so browsers should not re-request static
> content until it expires.

Should not and will not are very different things in my experience :)
Esp. when faced with users pressing F5. Pressing F5 will often result
if a Conditional GET (if there is a etag, or last-modified in the
original)

I guess that this should be directed into the feature request to allow
enabling of last-modified on the static server.
http://code.google.com/p/googleappengine/issues/detail?id=575


>
> -Nick Johnson
>
> On Tue, Jun 23, 2009 at 11:15 PM, Mariano Benitez 
> wrote:
> >
> > I do have some large static files, and given that appengine do not use
> > eTags or another form of check it is always returning the entire
> > files.
> >
> > If the static files count as part of the outgoing traffic quota (which
> > I think it is reasonable), then either you implement eTag or another
> > method of not returning the entire file if it was not modified.
> >
> > My other alternative is to implement my handlers, move all to dynamic,
> > and handle the 304 myself. I don't like the idea but I have no choice.
> >
> > Regards,
> > MAriano
> >
> >
>
>
>
> --
> Nick Johnson, App Engine Developer Programs Engineer
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
>
>
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Does static files count for outbound traffic?

2009-06-25 Thread Mariano Benitez

Thanks Barry and Nick,

Now it comes to the trade off between spending cpu cycles and
bandwidth...

If I make my own handler for static files, I don't use bandwith but
cpu cycles, the other way it's much simpler but your bandwidth
increases...

BTW, is it TOO bad to cache the 4 images I use all the time in the
handler itself, not even in memcache... they would add up to less than
500k.

On Jun 24, 8:10 am, Barry Hunter  wrote:
> On 24/06/2009, Nick Johnson (Google)  wrote:
>
> > Hi Mariano,
>
> > Yes,staticfiles are included in your daily trafficquota. Bear in mind
> > that although App Engine does not provide last-modified or etag headers, it
> > does set Cache-Control and Expires headers, and you can control the
> > expiration time in app.yaml, so browsers should not re-requeststatic
> > content until it expires.
>
> Should not and will not are very different things in my experience :)
> Esp. when faced with users pressing F5. Pressing F5 will often result
> if a Conditional GET (if there is a etag, or last-modified in the
> original)
>
> I guess that this should be directed into the feature request to allow
> enabling of last-modified on 
> thestaticserver.http://code.google.com/p/googleappengine/issues/detail?id=575
>
>
>
>
>
>
>
> > -Nick Johnson
>
> > On Tue, Jun 23, 2009 at 11:15 PM, Mariano Benitez 
> > wrote:
>
> > > I do have some largestaticfiles, and given that appengine do not use
> > > eTags or another form of check it is always returning the entire
> > > files.
>
> > > If thestaticfiles count as part of the outgoing trafficquota(which
> > > I think it is reasonable), then either you implement eTag or another
> > > method of not returning the entire file if it was not modified.
>
> > > My other alternative is to implement my handlers, move all to dynamic,
> > > and handle the 304 myself. I don't like the idea but I have no choice.
>
> > > Regards,
> > > MAriano
>
> > --
> > Nick Johnson, App Engine Developer Programs Engineer
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> > 368047
>
> --
> Barry
>
> -www.nearby.org.uk-www.geograph.org.uk-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---