Welcome! Log In Create A New Profile


Enabling proxy cache causes all responses to be buffered

January 18, 2013 05:26AM

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!


Enabling proxy cache causes all responses to be buffered

sachintheonlyJanuary 18, 2013 05:26AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready