headers-more-nginx-module
headers-more-nginx-module copied to clipboard
set_header and clear_header do not work on the first request.
Hello, I am looking for solution to solve the following issues.
Issue
Headers (Sever, X-Page-Speed, X-Upstream) are not removed in the first line but removed in the subsequent requests
details
my ngnix.conf has the following:
http {
more_set_headers 'Server: ocapp';
more_clear_headers 'X-Page-Speed';
more_clear_headers 'X-Upstream';
The configuration does not work on the first request. https://qa3.x.com. Header information is not changed by the header-more commands.
But the command works on the subsequent requests.

@jamesyangoc Could you please try removing other 3rd-party modules like ngx_pagespeed and see if you can still reproduce the problem? It's known that some 3rd-party modules like ngx_pagespeed may break this ngx_headers_more module. It's their problem not ours :)