Set Cloudflare HTTP Headers in Hugo

In a previous post I wrote about how to set Cloudflare HTTP headers using Cloudflare Workers. In this post, I’ll show you how to do the same thing using Hugo. Thanks to Grok, I learned a nifty trick for setting Cloudflare HTTP headers in Hugo. Instead of using Cloudflare Workers, you can use Hugo’s built-in support for setting HTTP headers. To do so, create the file static/_headers with your header content following Cloudflare’s format. As an example, here’s the content of this site’s static/_headers file: ...

February 19, 2025 · 1 min · 158 words · Chris

Set Security Headers using Cloudflare Workers

This article covers previous work and introduces a warning

October 9, 2020 · 2 min · Chris

Aws S3 Cloudfront Cloudflare Https

This post covers increasing security for a static site hosted on s3 using cloudfront and cloudflare

October 2, 2020 · 2 min · Chris

How to Securely Configure CloudFlare with S3

This post covers how to secure an S3 bucket serving content through Cloudflare

April 17, 2020 · 4 min · Chris

Site Update: Cloudflare

This site now uses CloudFlare

April 16, 2020 · 2 min · Chris