X-Page-Speed header passed even if pagespeed off ?

55 views
Skip to first unread message

Centmin Mod George

unread,
May 23, 2014, 1:46:11 PM5/23/14
to ngx-pagesp...@googlegroups.com
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;

curl -I domain.com 

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 ?

curl -I domain.com

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


Jeff Kaufman

unread,
May 23, 2014, 4:09:47 PM5/23/14
to ngx-pagesp...@googlegroups.com
Weird; testing this myself I don't see "X-Page-Speed: 1.8.31.2-3973"
or "Cache-Control: max-age=0, no-cache" when I set "pagespeed off",
and query parameters like ?PageSpeedFilters=+collapse_whitespace are
ignored as they should be.

Did you actually set "pagespeed off" or did you just comment out "pagespeed on"?
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-di...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ngx-pagespeed-discuss.
> For more options, visit https://groups.google.com/d/optout.

Centmin Mod George

unread,
Jun 1, 2014, 5:49:34 PM6/1/14
to ngx-pagesp...@googlegroups.com
yeah pagespeed off was specifically set

I'll try with 1.8.31.3 later.
Reply all
Reply to author
Forward
0 new messages