# Disable buffering/caching of HTTP PUT upload requests in nginx proxy

**URL:** <https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172>\
**Category:** NGINX\
**Created:** [November 23, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172 "2011-11-23T20:11:59Z")\
**Posts on this page:** 3\
**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:** [November 23, 2011, 8:11pm UTC](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172/1 "2011-11-23T20:11:59Z")

</div>

Hello,

During the upcoming days I’m going to try to implement a feature in  
nginx proxy  
that allows disabling local disk buffering/caching of HTTP PUT upload  
requests,  
e.g. allow directly stream the uploads to the backend server.

Right now I’m having problems because nginx proxy stores all the uploads  
temporarily  
to the nginx server local disk, and thus fills up the disk when big  
files are being uploaded.

If someone has comments/ideas about this, feel free to write to me.  
I’m currently in the process of getting familiar with nginx code  
and the request ‘flow’ inside nginx.

I’ll let you know how it goes 🙂

Thanks,

– Pasi

---

<div class="post-metadata">

**Author:** ![SSPasi\_KS\_rkkS\_inen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@SSPasi\_KS\_rkkS\_inen](https://www.ruby-forum.com/u/SSPasi_KS_rkkS_inen)\
**Post date:** [November 23, 2011, 8:23pm UTC](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172/2 "2011-11-23T20:23:10Z")

</div>

On Wed, Nov 23, 2011 at 9:11 PM, Pasi K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m currently in the process of getting familiar with nginx code  
> and the request ‘flow’ inside nginx.

It depends how are you going to approach this. I already did something  
similar by simply hijacking connection of the request.

Consider subscribing to nginx-devel@ for further questions.

---

<div class="post-metadata">

**Author:** ![SSPasi\_KS\_rkkS\_inen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@SSPasi\_KS\_rkkS\_inen](https://www.ruby-forum.com/u/SSPasi_KS_rkkS_inen)\
**Post date:** [November 23, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/disable-buffering-caching-of-http-put-upload-requests-in-nginx-proxy/214172/3 "2011-11-23T20:35:07Z")

</div>

On Wed, Nov 23, 2011 at 09:22:39PM +0200, Alexandr G. wrote:

> > If someone has comments/ideas about this, feel free to write to me.  
> > I’m currently in the process of getting familiar with nginx code  
> > and the request ‘flow’ inside nginx.
> 
> It depends how are you going to approach this. I already did something  
> similar by simply hijacking connection of the request.

Ok, good to hear.

> Consider subscribing to nginx-devel@ for further questions.

Good idea. I’ll do that.

Thanks,

– Pasi
