响应头如下,为什么浏览器命中强缓存?
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Age: 1778
Ali-Swift-Global-Savetime: 1689232794
Content-Length: 39561
Content-Md5: ljKnHG4XVG8OawtkxhzFbQ==
Content-Type: application/javascript
Date: Thu, 13 Jul 2023 07:19:54 GMT
Eagleid: 3adc342816892345724022404e
Etag: "9632A71C6E17546F0E6B0B64C61CC56D"
Last-Modified: Wed, 12 Jul 2023 07:40:59 GMT
Server: Tengine
Timing-Allow-Origin: *
Vary: Accept-Encoding
Via: cache80.l2cn3022[0,0,304-0,H], cache69.l2cn3022[0,0], kunlun20.cn5209[0,0,200-0,H], kunlun20.cn5209[1,0]
X-Cache: HIT TCP_MEM_HIT dirn:9:128133721
X-Oss-Cdn-Auth: success
X-Oss-Hash-Crc64ecma: 14676842204871193490
X-Oss-Object-Type: Normal
X-Oss-Request-Id: 64AFA59AEE85213839C57630
X-Oss-Server-Time: 20
X-Oss-Storage-Class: Standard
X-Oss-Version-Id: CAEQZhiBgMDq1ZekyhgiIDZhMzY1MjA3YTA2MzQ4ODI4Y2ZiYzhkYjA5MGUwMTBl
X-Swift-Cachetime: 3600
X-Swift-Savetime: Thu, 13 Jul 2023 07:39:47 GMT
这两个字段也会影响Last-Modified和Etag,Age 的值是 1778,这说明着资源在缓存里已经存放了 1778 秒