Forum: NGINX Enabling proxy cache causes all responses to be buffered

Posted by sachintheonly (Guest)
on 2013-01-18 11:27
(Received via mailing list)
Hi,

I am using nginx as a download proxy cache, caching files locally. I 
have
configured nginx to cache certain paths, for the rest I set
proxy_cache_bypass to make sure they are not cached.

The config looks something like this:

    proxy_buffering on;
    proxy_cache_path  _@cache_path_@  levels=1:2 
keys_zone=cache_one:128m
inactive=1440m max_size=2000m;
    proxy_cache_methods GET;
...
...
        location /service {
            # Send request to java objectStoreService servlet
            proxy_cache_bypass true;
            proxy_pass url;
        }

        location ~ /get_file$ {
            proxy_pass url;
        }

However I see that every response is being buffered and saved for futur 
even
when proxy_cache_bypass is set to true, how can I skip caching and 
buffering
altogether for unwanted paths for example /service in the above conf

Any help is much appreciated, thanks!

Thanks
Sachin

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,235264,235264#msg-235264
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.