Permalink
Browse files

further refactoring to reduce logging latencey.

  • Loading branch information...
padams
padams committed May 11, 2012
1 parent 91e7db9 commit d1b625c0476050767a91414a83d73c57f87be510
Showing with 14 additions and 3 deletions.
  1. +13 −2 log.php
  2. +1 −1 modules/base/js/owa.tracker-combined-min.js
View
15 log.php
@@ -46,15 +46,26 @@
ob_start();
}
// removing any content encoding like gzip etc.
header('Content-encoding: none', true);
//check to se if request is a POST
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// redirect to blank.php
owa_lib::redirectBrowser( str_replace('log.php', 'blank.php', owa_lib::get_current_url() ) );
// necessary or else buffer is not actually flushed
echo ' ';
} else {
// return 1x1 pixel gif
header('Content-type: image/gif', true);
header("Content-type: image/gif");
// needed to avoid cache time on browser side
header("Content-Length: 42");
header("Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate");
header("Expires: Wed, 11 Jan 2000 12:59:00 GMT");
header("Last-Modified: Wed, 11 Jan 2006 12:59:00 GMT");
header("Pragma: no-cache");
echo sprintf(
'%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%',
71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d1b625c

Please sign in to comment.