Welcome! Log In Create A New Profile

Advanced

proxy_ignore_headers Cache-Control + Set-Cookie do not work both

September 05, 2013 09:09AM
Hi,
in a reverse-proxy setup I want to ignore "Cache-Control:" and "Set-Cookie:" for .css and some more.

Each one works perfectly.

Pages sent with a cookie are being cached:
location ~* \.(css|ico|js) {
proxy_pass http://Upstream-server;
proxy_ignore_headers Set-Cookie; }

Pages sent with a cookie are being cached (just for reference):
location ~* \.(css|ico|js) {
proxy_pass http://Upstream-server;
proxy_ignore_headers Set-Cookie Expires; }

Pages sent with a cookie are NOT being cached:
location ~* \.(css|ico|js) {
proxy_pass http://Upstream-server;
proxy_ignore_headers Set-Cookie Cache-Control; }

nginx version: nginx/1.1.19
Ubuntu 12.04 LTS.

What am I doing wrong?

Falk
SubjectAuthorPosted

proxy_ignore_headers Cache-Control + Set-Cookie do not work both

FalkSeptember 05, 2013 09:09AM

Re: proxy_ignore_headers Cache-Control + Set-Cookie do not work both

Maxim DouninSeptember 05, 2013 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
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