headers-more-nginx-module icon indicating copy to clipboard operation
headers-more-nginx-module copied to clipboard

set_header and clear_header do not work on the first request.

Open jamesyangoc opened this issue 10 years ago • 1 comments

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.

image

jamesyangoc avatar Aug 23 '15 20:08 jamesyangoc

@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 :)

agentzh avatar Aug 24 '15 00:08 agentzh