What's the difference between "proxy_cache" and "fastcgi_cache"?

I know that “proxy_cache” is often used for static pages(or elements),
and “fastcgi_cache” is usually used for dynamic script(.php,.jsp
etc.).

  But what's difference between their implementation?   what content 

is cached by “fastcgi_cache”, the script file itself or the interpretted
HTML file?

  Thanks in advance.

by piger

pig Wrote:

I know that “proxy_cache” is often used for static
pages(or elements), and “fastcgi_cache” is usually
used for dynamic script(.php,.jsp etc.).

  But what's difference between their

implementation? what content is cached by
“fastcgi_cache”, the script file itself or the
interpretted HTML file?

Whatever is returned by fastcgi. Usually html.

Posted at Nginx Forum: