try
response.setHeader("Cache-Control", "public, max-age="+maxAge);
and check if response code is 200 for the first time and 304 the next one
On Thu, Sep 1, 2011 at 12:27 PM, Guillaume B.
<[email protected]>wrote:
> Hello,
> I must really miss something
> We have an java appengine application that deliver nearly "static" content
> : the result of request vary very few over time
> a request is valid for almost 24h
>
> inhttps://appengine.google.com/dashboard
> I have nice chart of requests by type / per second
>
> 0% Static Requests (I think this is normal because we have nearly no static
> file all data comes from "database")
> 0% Cached Requets (WHYYYYYYYYYYYY)
> 100% Dynamic Requets
>
> We use Memcache
> I set cache header
> response.addHeader("Cache-Control", "public");
> response.addHeader("Cache-Control", "max-age="+ secondsToCache);
>
> please please tell me what is wrong I must forget something in
> configuration fileor in java code If someone has an idea ...
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/ky-xag4DggoJ.
> 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-java?hl=en.
>
--
Bruno Fuster
--
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 [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-java?hl=en.