GNOME Bugzilla – Bug 785128
Add a HTTP cache header to http://nmcheck.gnome.org/check_network_status.txt
Last modified: 2017-07-19 18:48:09 UTC
Hi, The NetworkManager test endpoint at http://nmcheck.gnome.org/check_network_status.txt needs to be made cache-aware. Please add `Cache-Control: must-revalidate, max-age=0` HTTP response header to this resource. This header will ensure clients actually test that their internet connections are working, and not only the connection to their local web accelerator or intermediary caching proxy. https://ctrl.blog/entry/network-connection-http-checks
Daniel, I applied the requested change: curl -iI http://nmcheck.gnome.org HTTP/1.1 200 OK Date: Wed, 19 Jul 2017 15:08:19 GMT Server: Apache/2.2.15 (Red Hat) Cache-Control: must-revalidate, max-age=0 Connection: close Content-Type: text/html;charset=UTF-8
Thanks! The test should be more reliable for different network setups now!