运行命令“$ curl -sSL -D - https://cryptstorm.com -o /dev/null”后,它显示以下标头输出:
> HTTP/2 200 date: Tue, 10 Jul 2018 07:46:15 GMT content-type:
> text/html; charset=UTF-8 set-cookie:
> __cfduid=db3de46de5278430e9a9c1ba1d14f642b1531208774; expires=Wed, 10-Jul-19 07:46:14 GMT; path=/; domain=.cryptstorm.com ; HttpOnly;
> Secure x-powered-by: PHP/7.0.30 x-cf-powered-by: WP Rocket 3.0.5 link:
> <https://cryptstorm.com/wp-json/>; rel="https://api.w.org/"
> x-frame-options: SAMEORIGIN x-mod-pagespeed: 1.9.32.14-0 vary:
> Accept-Encoding cache-control: max-age=0, no-cache via: 1.1 google
> alt-svc: clear expect-ct: max-age=604800,
> report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
> server: cloudflare cf-ray: 43816a5b1986a857-CDG
我们可以专注于这一行:
“缓存控制:max-age=0,无缓存”
这说明没有为网页https://cryptstorm.com设置缓存,即使给出的最大年龄为 0 秒。尝试修改它并再次检查。
在文档中,我们可以阅读以下内容:
" 如果满足以下任一条件,则不会缓存响应:
· 它有一个 Cache-Control:no-store、no-cache 或 private 指令。”
如果这仍然没有为您解决问题,我建议您向Google Cloud Support开立一个案例,因为他们将获得有关如何在您的 VPC 中配置 CDN 以及可能配置错误的更多信息。