diff options
author | Alib <aliboba@free.fr> | 2010-03-28 15:24:58 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-28 15:24:58 +0200 |
commit | 9bae58f18ce68118f980e66cb8b9cf342310e36d (patch) | |
tree | fa09a3775381ed9fea3b238e58b2c9adface7cce | |
parent | 2b1358884535497eebd6d2ad9a768b56e1953af6 (diff) | |
download | istreamdev-9bae58f18ce68118f980e66cb8b9cf342310e36d.tar.gz istreamdev-9bae58f18ce68118f980e66cb8b9cf342310e36d.tar.bz2 |
added gzip encoding to json & index
-rwxr-xr-x | bin/backend.php | 2 | ||||
-rw-r--r-- | index.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/backend.php b/bin/backend.php index 6cc15f8..ab51bf6 100755 --- a/bin/backend.php +++ b/bin/backend.php @@ -1,6 +1,6 @@ <?php -header('Content-Type: application/json; charset: utf-8'); +header('Content-Encoding: gzip; Content-Type: application/json; charset: utf-8'); if (file_exists('../config.php')) include ('../config.php'); @@ -4,7 +4,9 @@ if (file_exists('config.php')) else include ('config_default.php'); include ('bin/auth.php'); +if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" manifest="istreamdev.manifest"> <head> |