how to enable memcached along with nginx server

hi,

I have configured nginx server and enabled header expiry + gzip component now i want to enable memcached along with it

but as soon as I enable memcached header expiry stops working can any one tell me the reason for it ?

thanks