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!

Subject Author Posted

Enabling proxy cache causes all responses to be buffered

sachintheonly January 18, 2013 05:26AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 41
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready