This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host * | |
Compression=yes | |
CompressionLevel=9 | |
ControlMaster auto | |
ControlPath /tmp/%r@%h:%p | |
ServerAliveInterval 100 | |
Host bastion | |
HostName bastion-21.network.hosting.acquia.com | |
User attilafekete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function serverReachable() { | |
// Cross-browser XHR creation | |
var request = new ( window.ActiveXObject || XMLHttpRequest )( "Microsoft.XMLHTTP" ), | |
status_code; | |
request.open( | |
// requesting the headers is faster, and just enough | |
"HEAD", | |
// append a random string to the current hostname, | |
// to make sure we're not hitting the cache |