Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache when 'Authorization' HTTP header presents.

Kuramoto Eiji
August 19, 2009 10:36PM
Hello,

On Tue, 18 Aug 2009 16:25:50 +0400
Maxim Dounin wrote:
} > } This effectively switches off cache for requests with
} > } authorization. The same may be done via configs.
} >
} > How can I do via configs?
}
} Try something like this:
}
} location @fallback {
} recursive_error_pages on;
} error_page 405 = @nocache;
}
} if ($http_authorization) {
} return 405;
} }
}
} proxy_pass ...
} proxy_cache ...
} }
}
} location @nocache {
} # no proxy_cache here
} proxy_pass ...
} }

I'll try this config later. Thank you.

- Kuramoto Eiji
Subject Author Posted

proxy_cache when 'Authorization' HTTP header presents.

Kuramoto Eiji August 11, 2009 10:47PM

Re: proxy_cache when 'Authorization' HTTP header presents.

Maxim Dounin August 17, 2009 10:14AM

Re: proxy_cache when 'Authorization' HTTP header presents.

Kuramoto Eiji August 18, 2009 07:38AM

Re: proxy_cache when 'Authorization' HTTP header presents.

Maxim Dounin August 18, 2009 08:25AM

Re: proxy_cache when 'Authorization' HTTP header presents.

Kuramoto Eiji August 19, 2009 10:36PM

Re: proxy_cache when 'Authorization' HTTP header presents.

Igor Sysoev August 18, 2009 10:13AM

Re: proxy_cache when 'Authorization' HTTP header presents.

Kuramoto Eiji August 19, 2009 11:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready