Cloudflare:清除单个文件不起作用

Cloudflare: purge of single files doesn't work

我正在尝试清除我网站的主页(而且只是主页),但没有成功。 Hurl.it 一直被送达 "hit"。为了进一步测试,我打开了 Cloudflare 界面,并在缓存选项卡的 "Purge individual files" 字段中添加了以下两行,这基本上是主页的手动清除(或者我认为)

https://example.com/ https://example.com

但还是一样:

Cache-Control: public, max-age=86400
Cf-Cache-Status: HIT
Cf-Ray: 3222f7c328d90862-IAD
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Mon, 16 Jan 2017 16:33:12 GMT
Expires: Tue, 17 Jan 2017 16:33:12 GMT
Last-Modified: Mon, 16 Jan 2017 16:11:40 GMT
Pragma:
Server: cloudflare-nginx
Set-Cookie: __cfduid=d936c80f83c1f69774f457a1f85937d141484584392; expires=Tue, 16-Jan-18 16:33:12 GMT; path=/; domain=.example.com; HttpOnly
Transfer-Encoding: chunked
Vary: Accept-Encoding

有人知道为什么会这样吗? headers?

中的内容

您的浏览器似乎正在缓存响应;我注意到 Cache-Control header 设置为几个小时。默认情况下,Cloudflare 将覆盖 Cache-Control headers - 但是您可以使用称为 "Respect Existing Headers".

的功能绕过此行为

为了利用它 - 首先导航到 Cloudflare 仪表板中的缓存选项卡。

在这里,向下滚动到标有 "Browser Cache Expiration" 的选项,只需 select 此处的 "Respect Existing Headers" 选项。设置后,Cloudflare 将不会覆盖 Cache-Control headers(即使它们根本不存在)。

更多信息: