Welcome! Log In Create A New Profile

Advanced

proxy_cache seems not working with X-Accel-Redirect

August 09, 2013 06:20AM
My config

location ~ /cached/ {
proxy_pass http://apache;
proxy_cache cache;
proxy_cache_valid 2h;
proxy_cache_key "$host|$request_uri";
}

location /htdocs_internal/ {
internal;
alias $htdocs_path;
}

Requests with header in reply X-Accel-Redirect not cached, every time request is sent to apache. When i add these directives
proxy_pass_header X-Accel-Redirect;
proxy_ignore_headers X-Accel-Redirect;
cache works fine (but is useless :) ), so it isn't problem with "no cache" headers from apache.
SubjectAuthorPosted

proxy_cache seems not working with X-Accel-Redirect

grayAugust 09, 2013 06:20AM

Re: proxy_cache seems not working with X-Accel-Redirect

Maxim DouninAugust 16, 2013 10:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 5 on November 26, 2014
Record Number of Guests: 173 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready