OSS Content-legnth 異常

背景:

用戶的服務架構是android

Client -> CDN -> OSS架構

當客戶端下載 CDN 內容是若是出現 Content 和用戶源站 (OSS) 不一致的狀況時能夠按照以下步驟進行排查。x-oss-request-id via content-length lastmodifyapp

  • 先固定 CDN 節點下載 object 確認出現問題的節點,測試的響應頭中咱們要保留的幾個排障信息。
HTTP/1.1 200 OK
Server: Tengine
Content-Type: application/vnd.android.package-archive
Content-Length: 12763521
Connection: keep-alive
Date: Sun, 18 Nov 2018 07:23:07 GMT
Cache-Control: max-age=3600
Expires: Sun, 18 Nov 2018 08:23:07 GMT
x-oss-request-id: 5BF1135B94D2DCB3BEB5EC9B
Accept-Ranges: bytes
ETag: "53184A3BF5AF6ED719B7EB05EBE72758"
Last-Modified: Wed, 14 Nov 2018 14:01:55 GMT
x-oss-object-type: Normal
x-oss-hash-crc64ecma: 11413790404635767721
x-oss-storage-class: Standard
Content-MD5: UxhKO/WvbtcZt+sF6+cnWA==
x-oss-server-time: 63
Via: cache32.l2cm9[0,304-0,H], cache13.l2cm9[42,0], kunlun2.cn2364[0,200-0,H], kunlun5.cn2364[34,0]
Age: 3210
Ali-Swift-Global-Savetime: 1542225117
X-Cache: HIT TCP_HIT dirn:11:175092793
X-Swift-SaveTime: Sun, 18 Nov 2018 07:29:51 GMT
X-Swift-CacheTime: 3600
Timing-Allow-Origin: *
EagleId: 7250bb1915425289976144403e
  • 在固定源站 OSS 測試看下 content-length,通過確實原站的 OSS 是正確的,可是爲何 CDN 上存儲的是錯誤的呢?
相關文章
相關標籤/搜索