Hello!
On Thu, Dec 27, 2012 at 3:00 AM, Steven Kleinert wrote:
> First of all I like to thank you for your great work!
> I installed openresty and been looking trough all modules and the power it
> amazing.
Glad you like it :)
> I am a little confused on what I’m trying to do.
> I have a subdomain for static content static.domain.com
> and trying to apply a rest memcache to it so if something is requested and
> not found by memcache it adds it and serves it
> could you point out how to do that?
> it’s mainly for for css js and static images.
I think you're trying to cache your specific requests' responses in
memcached. Just use the ngx_srcache module with ngx_memc to do that:
http://wiki.nginx.org/HttpSRCacheModule
This module is also bundled and enabled by default in ngx_openresty.
> Is it also possible to unset cookies on the response body?
Yes. You can do that via the more_clear_headers directive provided by
the ngx_headers_more module, which runs before ngx_srcache's capturing
output filters in ngx_openresty.
BTW, you're highly recommended to join the openresty-en mailing list
and ask questions there: https://groups.google.com/group/openresty-en
I'm cc'ing the list :)
Best regards,
-agentzh