diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-14 04:03:04 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-14 04:03:04 +0400 |
commit | df470ed7170e4b323b4623fd55453abc2d7810ad (patch) | |
tree | d2e234b0562e8b85f9aa847fe0a6de468e554808 /js/index.php | |
parent | 6ea0fe5c49de11a0693e0f588ae06484cf3f6503 (diff) |
Refactoring ProxyStaticFile class:
Small static file server proxy, with compression, caching.
Used to server piwik.js and the merged+minified CSS and JS files
Diffstat (limited to 'js/index.php')
-rw-r--r-- | js/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/index.php b/js/index.php index 6c67ffdc81..4ee43b7e64 100644 --- a/js/index.php +++ b/js/index.php @@ -5,7 +5,7 @@ * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -use Piwik\Piwik; +use Piwik\ProxyStaticFile; /** * Tracker proxy @@ -31,6 +31,6 @@ $file = '../piwik.js'; // There is no cache buster parameter so we don't set Expires: header $expireFarFuture = false; -Piwik::serveStaticFile($file, "application/javascript; charset=UTF-8", $expireFarFuture); +ProxyStaticFile::serveFile($file, "application/javascript; charset=UTF-8", $expireFarFuture); exit; |