# How to use fastcgi\_cache\_methods

**URL:** <https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144>\
**Category:** NGINX\
**Created:** [May 30, 2009, 1:58am UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144 "2009-05-30T01:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b77776/32.png) [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Post date:** [May 30, 2009, 1:58am UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144/1 "2009-05-30T01:58:51Z")

</div>

how to use fastcgi\_cache\_methods ??

---

<div class="post-metadata">

**Author:** ![bigbet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b77776/32.png) [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Post date:** [May 30, 2009, 2:51am UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144/2 "2009-05-30T02:51:11Z")

</div>

If I recall correctly, that just sets up whether you will support GET  
and  
POST. I could be mistaken, however…

---

<div class="post-metadata">

**Author:** ![bigbet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b77776/32.png) [@bigbet](https://www.ruby-forum.com/u/bigbet)\
**Post date:** [May 30, 2009, 6:56am UTC](https://www.ruby-forum.com/t/how-to-use-fastcgi-cache-methods/169144/3 "2009-05-30T06:56:08Z")

</div>

On Sat, May 30, 2009 at 01:58:51AM +0200, Big Bet wrote:

> how to use fastcgi\_cache\_methods ??

It allows to cache smal POST requests:

```
client_max_body_size 1k;
client_body_buffer_size 1k;
client_body_in_single_buffer on;

fastcgi_cache_methods POST;
fastcgi_cache zone;
fastcgi_cache_key "backend$request_uri $request_body";

```
