After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785128 - Add a HTTP cache header to http://nmcheck.gnome.org/check_network_status.txt
Add a HTTP cache header to http://nmcheck.gnome.org/check_network_status.txt
Status: RESOLVED FIXED
Product: sysadmin
Classification: Infrastructure
Component: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2017-07-19 14:16 UTC by Daniel Aleksandersen
Modified: 2017-07-19 18:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Aleksandersen 2017-07-19 14:16:59 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
Comment 1 Andrea Veri 2017-07-19 15:24:05 UTC
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
Comment 2 Daniel Aleksandersen 2017-07-19 18:48:09 UTC
Thanks! The test should be more reliable for different network setups now!