curl http://cdn.xxx.top/pic_03.jpg -v * Host cdn.xxx.top:80 was resolved. * IPv6:"> curl http://cdn.xxx.top/pic_03.jpg -v * Host cdn.xxx.top:80 was resolved. * IPv6:">

缓存相关常见问题

方式2:使用curl命令查看资源缓存情况

curl "http://example.com/path/to/response.html" -vF:\test>curl http://cdn.xxx.top/pic_03.jpg -v

* Host cdn.xxx.top:80 was resolved.

* IPv6: (none)

* IPv4: 1xxx

* Trying 1xxx:80...

* Connected to cdn.xxx.top (xxx) part 80

> GET /pic_03.jpg HTTP/1.1

> Host: cdn.xxx.top

> User-Agent: curl/8.9.1

> Accept: */*

>

* Request completely sent off

< HTTP/1.1 200 OK

< Server: Tengine

< Content-Type: image/jpeg

< Content-Length: 8775526

< Connection: keep-alive

< Date: Mon, 26 May 2025 02:21:59 GMT

< x-oss-request-id: 68xxx9A

< x-oss-cdn-auth: success

< Accept-Ranges: bytes

< ETag: "Bxxx2"

< Last-Modified: Tue, 03 Sep 2024 06:20:19 GMT

< x-oss-object-type: Normal

< x-oss-storage-class: Standard

< Via: cache20.l2cn3032[0,0,200-0,H], cache10.cn3573[0,0,200-0,H], cache10.cn3573[1,0]

< Age: 424

< X-Cache: HIT TCP_HIT dirn:0:698837654

< X-Swift-CacheTime: 2592000

< Timing-Allow-Origin: *

< EagleId: 08xxx51

<

* Connection #0 to host cdn.xxx.top left intact< x-oss-hash-crc64ecma: 12xxx58

< x-oss-storage-class: Standard

< x-oss-server-time: 228

< Via: ens-cache3.12cn7857[1863,1862,206-0,M], ens-cache38.12cn7857[1863,0], ens-cache20.cn6692[0,0,200-0,H], ens-cache4.cn6692[14,0]

< Age: 424

< Ali-Swift-Global-Savetime: 1748226119

< X-Cache: HIT TCP_HIT dirn:7:286737139 mlen:0

< X-Swift-SaveTime: Mon, 26 May 2025 02:21:59 GMT

< X-Swift-CacheTime: 2592000

< Timing-Allow-Origin: *

< EagleId: 7xxx220e

响应头中 X-Cache: HIT TCP_HIT 表明该资源已被 CDN 缓存命中,Age: 424 表示资源在缓存中已存储 424 秒,X-Swift-CacheTime: 2592000 表示缓存有效期为 2592000 秒(30 天)。

Copyright © 2088 一键全脑游戏活动站 - 脑力挑战专属福利 All Rights Reserved.
友情链接