Howto Remove the Cache-Control request header.

Thomas Ward teward at thomas-ward.net
Sat Jan 16 18:14:28 UTC 2021


proxy_ignore_headers Cache-Control;

⁣Get BlueMail for Android ​


-------- Original Message --------
From: Vincent Blondel <vbl5968 at gmail.com>
Sent: Sat Jan 16 13:11:54 EST 2021
To: nginx at nginx.org
Subject: Howto Remove the Cache-Control request header.

Hello,
We want nginx to remove the request header Cache-Control before to proxy
the request to the OCS.
We do like this ...

location /xxx {
        more_set_headers 'Strict-Transport-Security: max-age=31622400;
includeSubDomains';
        more_set_headers 'X-XSS-Protection: 1; mode=block';
        more_set_headers 'X-Content-Type-Options: nosniff';
        proxy_read_timeout 120s;
        proxy_set_header Connection "";
        proxy_set_header via "HTTP/1.1 $hostname:443";
        proxy_set_header Host $host;
        proxy_set_header Cache-Control "";
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_ssl_certificate /etc/nginx/keys/xxx.pem;
        proxy_ssl_certificate_key /etc/nginx/keys/xxx.key;
        proxy_pass https://XXX;
        proxy_redirect http:// https://;
        proxy_next_upstream error timeout invalid_header http_503;
}

but the request header Cache-Control is still being sent to the OCS.

Thank You in advance for Your help.
Sincerely,
Vincent


------------------------------------------------------------------------

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210116/3c2ca5d5/attachment.htm>


More information about the nginx mailing list