diff --git a/core/modules/statistics/statistics.php b/core/modules/statistics/statistics.php
index 87e3dae..1991e63 100644
--- a/core/modules/statistics/statistics.php
+++ b/core/modules/statistics/statistics.php
@@ -5,6 +5,20 @@
  * Handles counts of node views via AJAX with minimal bootstrap.
  */
 
+// Output headers & data and close connection.
+ignore_user_abort(TRUE);
+ob_start();
+header("Content-type: text/javascript; charset=utf-8");
+header("Expires: Sun, 19 Nov 1978 05:00:00 GMT");
+header("Cache-Control: no-cache");
+header("Cache-Control: must-revalidate");
+header("Content-Length: 24");
+header("Connection: close");
+print("/* Drupal Statistics */\n");
+@ob_end_flush();
+@ob_flush();
+@flush();
+
 // Change the directory to the Drupal root.
 chdir('../../..');
 
