Welcome! Log In Create A New Profile

Advanced

Enabling proxy cache causes all responses to be buffered

January 18, 2013 05:26AM
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
SubjectAuthorPosted

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: 89
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready