Google Cloud CDN忽略了超过3600的最大年龄

问题描述 投票:0回答:1

我们正在使用带有后端存储区的Google Cloud CDN。一切正常,我们看到缓存命中等,但缓存率低于预期。分析它,我发现没有一个请求的年龄超过3600.虽然我们的max-age设置为86400.将它设置为较小的工作。这是定义的行为吗?我们设置错了吗?

以下是其中一个文件的标题:

HTTP/2 200 
x-guploader-uploadid: AEnB2Ur4sV1ou6Av1U8OgQC8iNxgFmLzAbQ4bFQ4mBAYCyBOHviUAfAbkWFUycAUGLYDYbgNSdaw_zdkE6ySLdRTe0vScOh3Tw
date: Wed, 05 Sep 2018 14:40:29 GMT
expires: Thu, 06 Sep 2018 14:40:29 GMT
last-modified: Thu, 02 Mar 2017 15:31:23 GMT
etag: "1293d749638a24bf786a15f2a2a6ca76"
x-goog-generation: 1488468683233688
x-goog-metageneration: 3
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 89976
content-type: text/plain
x-goog-hash: crc32c=nIbPdQ==
x-goog-hash: md5=EpPXSWOKJL94ahXyoqbKdg==
x-goog-storage-class: STANDARD
accept-ranges: bytes
content-length: 89976
access-control-allow-origin: *
access-control-expose-headers: x-unity-version
access-control-expose-headers: origin
server: UploadServer
age: 3041
cache-control: public, max-age=86400
alt-svc: clear
google-cloud-storage google-cloud-cdn
1个回答
0
投票

根据这个Cloud CDN Documentation

请注意,缓存条目的到期时间是缓存条目保持有效的时间的上限。无法保证缓存条目在缓存过期之前将保留在缓存中。可以驱逐不受欢迎的内容的缓存条目以为新内容腾出空间。无论指定的到期时间如何,都会自动删除30天未访问的缓存条目。

话虽这么说,我们能够重现相同的行为。因此,为了确认它是否确实是预期的行为或问题,为了您的方便,我在issue上创建了一个新的Google Issue Tracker

© www.soinside.com 2019 - 2024. All rights reserved.