Welcome! Log In Create A New Profile

Advanced

Re: Howto Remove the Cache-Control request header.

Vincent Blondel
January 16, 2021 01:22PM
Thank You for the swift response Thomas.
AFAICS, proxy_ignore_headers is to disable processing of certain response
header fields from the proxied server.
This is what I can find on nginx website doc.
We want the request Cache-Control header to not be proxied to the OCS.
-V

On Sat, Jan 16, 2021 at 7:14 PM Thomas Ward <teward@thomas-ward.net> wrote:

> proxy_ignore_headers Cache-Control;
>
> Get BlueMail for Android http://www.bluemail.me/r?b=16117
> ------------------------------
> *From:* Vincent Blondel
> *Sent:* Sat Jan 16 13:11:54 EST 2021
> *To:* nginx@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Howto Remove the Cache-Control request header.

Vincent Blondel January 16, 2021 01:14PM

Re: Howto Remove the Cache-Control request header.

Thomas Ward January 16, 2021 01:16PM

Re: Howto Remove the Cache-Control request header.

Vincent Blondel January 16, 2021 01:22PM

Re: Howto Remove the Cache-Control request header.

Francis Daly January 16, 2021 07:18PM

Re: Howto Remove the Cache-Control request header.

Vincent Blondel January 19, 2021 12:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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