This is tangential to your question, but have you looked at using the
cache-control header? That is, setting Cache-Control to "public;
max-age=3600;". This'll cause proxy servers between App Engine and your
client to cache the page.

Gzip is handled by Google infrastructure, so this is something you should
never have to worry about since it happens after you have already returned a
response.

I suspect the way to do what you are asking in a filter is to pass a
HttpServletResponse wrapper to doFilter that captures the response somehow
(I am not familiar with how this would work, you may have to consult how
EHCache does it), then places it into Memcache using the URI as a key.


On Mon, May 3, 2010 at 10:39 PM, Sergio Lopes <slo...@gmail.com> wrote:

> Hi
>
> Are there anyone using some kind of server-side page cache using
> memcached?
> I'm thinking in a Filter that put page results in memcache when first
> accessed, and then getting that result in former accesses.
>
> The idea is simple but the implementation is not. (how to get the
> first request response? how to implement proper header management in
> that filter? how to not disable gzip using this?)
>
> I tried Ehcache with the Web Module (https://groups.google.com/group/
> google-appengine-java/browse_thread/thread/7cfa0eae3bc26444) but it's
> not working.
>
> Maybe someone here has an idea on how to implement an effective page
> cache using Java
>
> Tks
> Sérgio
>
> --
> 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-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan

----------------
Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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

Reply via email to