diff --git a/src/OSS/OssClient.php b/src/OSS/OssClient.php index ed00b9cc..1454a3d4 100644 --- a/src/OSS/OssClient.php +++ b/src/OSS/OssClient.php @@ -2137,6 +2137,15 @@ private function auth($options) if (!isset($headers[self::OSS_ACCEPT_ENCODING])) { $headers[self::OSS_ACCEPT_ENCODING] = ''; } + +// for check from option['Cache-Control'] exists + if (isset($options[self::OSS_CACHE_CONTROL])) { + $headers[self::OSS_CACHE_CONTROL] = $options[self::OSS_CACHE_CONTROL]; + } +// for check from option['Expires'] exists + if (isset($options[self::OSS_EXPIRES])) { + $headers[self::OSS_EXPIRES] = $options[self::OSS_EXPIRES]; + } uksort($headers, 'strnatcasecmp');