From 9a7e4c6a9c805c5d7f6ec9aee2f44fb56c5f3bbe Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 21 Nov 2020 10:17:45 +0000 Subject: [PATCH] post(cloudflare-caching): correction --- source/_posts/cloudflare-html-cache.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/_posts/cloudflare-html-cache.md b/source/_posts/cloudflare-html-cache.md index 461bf5a..4a9a6c3 100644 --- a/source/_posts/cloudflare-html-cache.md +++ b/source/_posts/cloudflare-html-cache.md @@ -6,9 +6,7 @@ tags: - cloudflare --- -In this guide, I'll show you how to enable html caching. Since the inception of this website, I always make sure [caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) is configured correctly so that most of the content are served from CDN, which is much faster than serving content from my origin server. This is in addition to the fact that this website is a static site, so _all_ content are cacheable. I configured caching in [Netlify](https://gitlab.com/curben/blog/-/blob/master/source/_headers), [Caddy](/blog/2020/03/14/caddy-nixos-part-3/#Cache-Control) and [Cloudflare](https://support.cloudflare.com/hc/en-us/articles/200168276-Understanding-Browser-Cache-TTL). - -However, for the past 8 months, the analytics (Analytics -> Performance) showed that only 1% is served from cache. +In this guide, I'll show you how to enable html caching. Since I started using Cloudflare eight months ago, I always make sure [caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control) is configured correctly so that most of the content are served from CDN, which is much faster than serving content from my origin server. This is in addition to the fact that this website is a static site, so _all_ content are cacheable. I configured caching in [Netlify](https://gitlab.com/curben/blog/-/blob/master/source/_headers), [Caddy](/blog/2020/03/14/caddy-nixos-part-3/#Cache-Control) and [Cloudflare](https://support.cloudflare.com/hc/en-us/articles/200168276-Understanding-Browser-Cache-TTL). However, every time I check the analytics (Analytics -> Performance), it only showed 1% of content is served from cache. ![1% bandwidth saved](20201121/cf-before.png)