# What's the difference between "proxy\_cache" and "fastcgi\_cache"?

**URL:** <https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884>\
**Category:** NGINX\
**Created:** [March 1, 2011, 10:01am UTC](https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884 "2011-03-01T10:01:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 1, 2011, 10:01am UTC](https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884/1 "2011-03-01T10:01:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pig](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ea666f/32.png) [@pig](https://www.ruby-forum.com/u/pig)\
**Post date:** [March 1, 2011, 4:49pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-proxy-cache-and-fastcgi-cache/203884/2 "2011-03-01T16:49:13Z")

</div>

## 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:  
[http://forum.nginx.org/read.php?2,179382,179466#msg-179466](http://forum.nginx.org/read.php?2,179382,179466#msg-179466)
