Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-14 04:14:23 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-14 04:14:23 +0400
commitcf279bc8aa095c849932182bd3eb1c60ed9f67a3 (patch)
treeab8230b7e4e7b46065c079d3bfdaf3d28c443978 /core/Piwik.php
parentdf470ed7170e4b323b4623fd55453abc2d7810ad (diff)
ProxyHttp class until I find a better name
Diffstat (limited to 'core/Piwik.php')
-rw-r--r--core/Piwik.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 6d178f45eb..469b1f80e6 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -178,42 +178,6 @@ class Piwik
return $url;
}
- /**
- * Returns true if this appears to be a secure HTTPS connection
- *
- * @return bool
- */
- static public function isHttps()
- {
- return Url::getCurrentScheme() === 'https';
- }
-
- /**
- * Workaround IE bug when downloading certain document types over SSL and
- * cache control headers are present, e.g.,
- *
- * Cache-Control: no-cache
- * Cache-Control: no-store,max-age=0,must-revalidate
- * Pragma: no-cache
- *
- * @see http://support.microsoft.com/kb/316431/
- * @see RFC2616
- *
- * @param string $override One of "public", "private", "no-cache", or "no-store". (optional)
- */
- static public function overrideCacheControlHeaders($override = null)
- {
- if ($override || self::isHttps()) {
- @header('Pragma: ');
- @header('Expires: ');
- if (in_array($override, array('public', 'private', 'no-cache', 'no-store'))) {
- @header("Cache-Control: $override, must-revalidate");
- } else {
- @header('Cache-Control: must-revalidate');
- }
- }
- }
-
/*
* File and directory operations
*/