summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2023-08-21 15:50:23 +0200
committerChristian Schneider2023-08-21 15:50:23 +0200
commitdfce5aedf11dff21113e96b8c70dd3b877561648 (patch)
treef745dc9155ec1f7b2de02f5031a46f1758e253e4 /it_url.class
parent7a0e4193e4762612334fefe869075698d2173414 (diff)
downloaditools-dfce5aedf11dff21113e96b8c70dd3b877561648.tar.gz
itools-dfce5aedf11dff21113e96b8c70dd3b877561648.tar.bz2
itools-dfce5aedf11dff21113e96b8c70dd3b877561648.zip
Do not cache content between OneDomain mode and old-style domains
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 00036e3..1b2bfc7 100644
--- a/it_url.class
+++ b/it_url.class
@@ -559,7 +559,7 @@ static function get_cache_filename($p)
$p['cachedir'] = it_url::get_cache_dir($p);
unset($p['headers']['Authorization']); # prevent ever changing filenames due to changing Bearer tokens
- $filename = $p['cachefilename'] ?: md5(T_lang() . T_defaultlang() . $p['url'] . ($p['headers'] ? serialize($p['headers']) : "") . ($p['data'] ? serialize($p['data']) : ""));
+ $filename = $p['cachefilename'] ?: md5(T_lang() . T_defaultlang() . $p['url'] . ($p['headers'] ? serialize($p['headers']) : "") . ($p['data'] ? serialize($p['data']) : "") . $_SERVER['HTTP_X_SERVICE_PATH']);
return $p['cachedir'] . "/" . substr($filename, 0, 2) . "/$filename";
}