# Proxy\_buffering on - doesn't return files with large data?

**URL:** <https://www.ruby-forum.com/t/proxy-buffering-on-doesnt-return-files-with-large-data/218636>\
**Category:** NGINX\
**Created:** [April 6, 2012, 2:32pm UTC](https://www.ruby-forum.com/t/proxy-buffering-on-doesnt-return-files-with-large-data/218636 "2012-04-06T14:32:53Z")\
**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 6, 2012, 2:32pm UTC](https://www.ruby-forum.com/t/proxy-buffering-on-doesnt-return-files-with-large-data/218636/1 "2012-04-06T14:32:53Z")

</div>

Hi,

We have setup like so :

1. Nginx is configured as server which recieves user request
2. The user request is proxy\_passed to another server which is also  
Nginx.

Now when user requests for a file(401481 bytes) over AJAX, it is not  
being served. This problem doesn’t happen for every file, just for  
random files. The same file doesn’t load every time.

I tried disabling proxy\_buffering off, it worked.  
BTW, it is not the file size problem. It is working for larger file than  
the one that is not loading. I would love to know why.

Thanks,  
Shrinath

Posted at Nginx Forum:

> **[proxy\_buffering on - doesn't return files with large data?](https://forum.nginx.org/read.php?2,225015,225015#msg-225015)**
>
> Hi, We have setup like so : 1. Nginx is configured as server which recieves user request 2. The user request is proxy\_passed to another server which is also Nginx. Now when user requests for a file(401481 bytes) over AJAX, it is not being served

---

<div class="post-metadata">

**Author:** ![shrinath.m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@shrinath.m](https://www.ruby-forum.com/u/shrinath.m)\
**Post date:** [April 6, 2012, 6:36pm UTC](https://www.ruby-forum.com/t/proxy-buffering-on-doesnt-return-files-with-large-data/218636/2 "2012-04-06T18:36:08Z")

</div>

Hello!

On Fri, Apr 06, 2012 at 08:32:16AM -0400, shrinath.m wrote:

> random files. The same file doesn’t load every time.
> 
> I tried disabling proxy\_buffering off, it worked.  
> BTW, it is not the file size problem. It is working for larger file than  
> the one that is not loading. I would love to know why.

First of all try looking into error logs. If it doesn’t help,  
please provide debug log, see here for details:

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

Maxim D.
