diff --git a/include/class.file.php b/include/class.file.php index 21c9bff4a0ca45739b21b78a3fdd7482afb0d60c..b9210fccefe9c4d7c198b700d85eff155d0bfa4c 100644 --- a/include/class.file.php +++ b/include/class.file.php @@ -97,9 +97,9 @@ class AttachmentFile { return $this->ht['key']; } - function getSignature() { + function getSignature($cascade=false) { $sig = $this->ht['signature']; - if (!$sig) return $this->getKey(); + if (!$sig && $cascade) return $this->getKey(); return $sig; } @@ -153,7 +153,7 @@ class AttachmentFile { } function makeCacheable($ttl=86400) { - Http::cacheable($this->getSignature(), $this->lastModified(), $ttl); + Http::cacheable($this->getSignature(true), $this->lastModified(), $ttl); } function display($scale=false) {