
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也提供网站统计服务-Web Analytics
- Cloudflare images-图床上传图片示例
- Cloudflare 阻止了 1720 万 rps 的 DDoS 攻击——有史以来最大的一次
- cloudflare越來越不穩定了
- acme.sh Not valid yet, let's wait 10 seconds and check next one的解决方法
- Cloudflare 出現了520錯誤
- cloudflare 推出了对象存储R2,amazon s3的强烈竞争对手
- 使用301实现域名跳转到www包括https的3种方法
- Solution to garbled laptop keyboard
- Qnap NAS cannot access Plex solution