While testing, I had ngx_pagespeed disabled with
pagespeed off
But if I have these in my nginx.conf, the X-Page-Speed header is still passed on ?
#######################################################
# 1.8.31.2 beta required paths
######################################
pagespeed FileCachePath /var/ngx_pagespeed_cache;
pagespeed StatisticsPath /ngx_pagespeed_statistics;
pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
pagespeed MessagesPath /ngx_pagespeed_message;
pagespeed ConsolePath /pagespeed_console;
pagespeed AdminPath /pagespeed_admin;
pagespeed GlobalAdminPath /pagespeed_global_admin;
gives
HTTP/1.1 200 OK
Server: nginx centminmod
Content-Type: text/html
Connection: keep-alive
Vary: Accept-Encoding
Date: Fri, 23 May 2014 17:37:50 GMT
X-Page-Speed: 1.8.31.2-3973
Cache-Control: max-age=0, no-cache
Now if I comment out the lines from nginx.conf while pagespeed off, only then does the X-Page-Speed header get removed ?
HTTP/1.1 200 OK
Server: nginx centminmod
Date: Fri, 23 May 2014 17:39:11 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
CentOS 6.5 64bit Xen VPS from Linode
nginx version: nginx/1.7.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
TLS SNI support enabled
configure arguments: --with-cc-opt='-I/svr-setup/staticlibssl/include -I/usr/include' --with-ld-opt='-L/svr-setup/staticlibssl/lib -Wl,-rpath -lssl -lcrypto -ldl -lz' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.1 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-openssl=../openssl-1.0.1g --with-libatomic --with-pcre=../pcre-8.35 --with-pcre-jit --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.8.31.2-beta