Header expiry on google charts and amazon s3

Hey all

I am using google charts in my app and even Amazon s3. So i m getting
some jpg component from these sites…

can ne one tell me how to set header expiry for those components that r
coming from other servers like google charts and amazon.

i m using nginx server.

thanks