<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cloudflare on Moxuan's Blog</title><link>https://blog.moxuan.de/tags/cloudflare/</link><description>Recent content in Cloudflare on Moxuan's Blog</description><image><title>Moxuan's Blog</title><url>https://i.postimg.cc/7hwBy7VS/calcr.png</url><link>https://i.postimg.cc/7hwBy7VS/calcr.png</link></image><generator>Hugo -- 0.154.3</generator><language>zh-cn</language><copyright>©2023-2026 moxuan</copyright><lastBuildDate>Thu, 05 Dec 2024 17:15:00 +0800</lastBuildDate><atom:link href="https://blog.moxuan.de/tags/cloudflare/index.xml" rel="self" type="application/rss+xml"/><item><title>连公网 IP 都不需要，用 Cloudflare Tunnels 安全发布内网服务</title><link>https://blog.moxuan.de/posts/cloudflare-tunnels-expose-local-service/</link><pubDate>Thu, 05 Dec 2024 17:15:00 +0800</pubDate><guid>https://blog.moxuan.de/posts/cloudflare-tunnels-expose-local-service/</guid><description>&lt;p&gt;&lt;strong&gt;没有公网 IP 的悲哀&lt;/strong&gt;
最近在自己电脑上开发了一个小面板，想发给朋友测试。但现在的家用宽带全是层层 NAT，根本拿不到公网 IP，就算拿到也封了 80 和 443 端口。&lt;/p&gt;</description></item><item><title>研究了一下 Cloudflare 的页面规则，静态资源直接起飞</title><link>https://blog.moxuan.de/posts/cloudflare-cache-rules/</link><pubDate>Sat, 28 Sep 2024 15:45:00 +0800</pubDate><guid>https://blog.moxuan.de/posts/cloudflare-cache-rules/</guid><description>&lt;p&gt;把域名托管给 Cloudflare 之后，发现首页加载还是差那么点意思。打开浏览器 F12 看了一下 Network，很多图片每次还要回源站去请求。&lt;/p&gt;
&lt;p&gt;直接进 CF 控制台，在 &lt;code&gt;Rules -&amp;gt; Page Rules&lt;/code&gt; 里面加了一条规则。把图片路径（比如 &lt;code&gt;*moxuan.de/images/*&lt;/code&gt;）的缓存级别直接调成了 &lt;code&gt;Cache Everything&lt;/code&gt;（缓存所有内容），然后加上 Edge Cache TTL 设置为一个月。&lt;/p&gt;</description></item></channel></rss>