# POST DATA in cache\_key

**URL:** <https://www.ruby-forum.com/t/post-data-in-cache-key/218577>\
**Category:** NGINX\
**Created:** [April 4, 2012, 7:21pm UTC](https://www.ruby-forum.com/t/post-data-in-cache-key/218577 "2012-04-04T19:21:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 4, 2012, 7:21pm UTC](https://www.ruby-forum.com/t/post-data-in-cache-key/218577/1 "2012-04-04T19:21:51Z")

</div>

is it possible to use a value found within POST DATA as part of the  
cache key?

for example, the value of variable called ‘username’ to be part of the  
cache key.

so i basically want the cache to key to simply hash against the  
connecting IP and the ‘username’ POST variable.

proxy\_cache\_key “$remote\_addr$POST[username]”

thanks in advance

Posted at Nginx Forum:

> **[POST DATA in cache\_key](https://forum.nginx.org/read.php?2,224945,224945#msg-224945)**
>
> is it possible to use a value found within POST DATA as part of the cache key? for example, the value of variable called 'username' to be part of the cache key. so i basically want the cache to key to simply hash against the connecting IP and the...

---

<div class="post-metadata">

**Author:** ![fiyah2011](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/5fc32e/32.png) [@fiyah2011](https://www.ruby-forum.com/u/fiyah2011)\
**Post date:** [April 4, 2012, 7:42pm UTC](https://www.ruby-forum.com/t/post-data-in-cache-key/218577/2 "2012-04-04T19:42:17Z")

</div>

this looks like the solution i am looking for.

[https://github.com/calio/form-input-nginx-module/blob/master/README](https://github.com/calio/form-input-nginx-module/blob/master/README)

Posted at Nginx Forum:

> **[Re: POST DATA in cache\_key](https://forum.nginx.org/read.php?2,224945,224947#msg-224947)**
>
> is it possible to use a value found within POST DATA as part of the cache key? for example, the value of variable called 'username' to be part of the cache key. so i basically want the cache to key to simply hash against the connecting IP and the...
