
Cloudflare not caching solution
Cloudflare is sometimes cached and sometimes not cached
After a month of troubleshooting, the problem of cloudflare not caching was finally solved
First of all, cloudflare does not cache html web pages. By default, it only caches static files, such as css, js files.
So how to make cloudflare cache the specified webpage or cache the content of the article? There are two ways
- The first type is to enable the source server cache control, and then add the cache identifier to the source site ~~~
This is a bit complicated and requires self-configuration and debugging. . . As shown below, enable cloudflare source server cache control
- The second method is relatively simple, and caches the specified webpage or article content directly in cloudflare
This method is very simple and rude. Well, it's fragrant to use! ~~~~ See the picture below
Let's take a look at the previous page request display is not cached
Set mandatory cache for the specified webpage in cloudflare, check the header information of the webpage again to show that it has been cached
💘 相关文章
- cloudflare越來越不穩定了
- Cloudflare images-图床上传图片示例
- 把域名从阿里云转出到了cloudflare
- cloudflare 推出了对象存储R2,amazon s3的强烈竞争对手
- -bash: dig: command not found solution
- zblog出现“请点击这里更新到应用中心最新版本,否则您的应用中心可能无法使用。”的方法
- Cloudflare 出現了520錯誤
- how to do config nginx allow's cloudflare ip's
- Cloudflare 阻止了 1720 万 rps 的 DDoS 攻击——有史以来最大的一次
- cloudflare也提供网站统计服务-Web Analytics