Caddy 2.6 Web Server Brings HTTP/3 Support by Default

Caddy 2.6 has enabled HTTP/3 by default, virtualizes the file system, and increases the performance of static files and FastCGI.

Caddy is an open-source, fast, cross-platform web server written in Go, best known for its automatic HTTPS features. It is designed to be simple, easy to use, and secure.

And as is typical with Go applications, the entire program is distributed as a single binary, which is available for Windows, Mac, Linux, and BSD and includes all of its dependencies.

Recently, Caddy developers just announced Caddy 2.6, with the caveat that it is one of the most significant versions.

This is our biggest release since Caddy 2. Caddy 2 changed the way the world serves the Web. By providing an online config API, automatic HTTPS, unlimited extensibility, certificate automation at scale, modern protocols, sane defaults, and an unrivaled developer experience, we boldly raised the bar for web servers.

So, after such an exciting announcement, we can’t help but pay attention to this release and see what new things it gives us.

Caddy 2.6 Web Server Highlights

Caddy Web Server


The big news here is that Caddy 2.6 includes HTTP/3 support by default. Furthermore, the previous experimental options “experimental_http3” and “allow_h2c” have been removed.

So, make sure they aren’t presented in your Caddyfile config file before upgrading to Caddy 2.6. Otherwise, an error will be generated when attempting to start the server.

On top of that, it should be noted that HTTP/3 makes use of the QUIC transport, which requires UDP. In other words, HTTP/3 connections will fail if your network or firewall configuration only enables TCP, and clients will fall back to HTTP/2.

Virtual File Systems Support

Users of the Caddy web server are familiar with the powerful “file_server” option, which allows it to deliver static files to clients. However, in the most recent update, Caddy has gone a step further, providing delivery of static files from virtual file systems.

Let me give you some use cases of how this option might be helpful. You could, for example, serve content as static files using AWS S3 or another blob/cloud storage provider. In addition, you can also load the files straight from the database rather than from the disk.

One thing is sure: this significantly increases the capabilities of this web server.

Faster FastCGI Performance

As you probably know, Caddy can be integrated with PHP through PHP-FPM. So, when Caddy 2 saw the light of day in 2019, all the code from the original Caddy implementation would have been rewritten from scratch with one major exception – the FastCGI part.

Caddy 2.6 changes this. The FastCGI implementation portion has been rewritten, and anyone running the web server enabled by PHP-FPM can now enjoy a lightning-fast performance.

But that’s not all. According to announcing data, Caddy now spends 86% less CPU time in GC. Undoubtedly impressive changes that will only add to the rapidly growing popularity of this relatively young web server.

Other Improvements in Caddy 2.6

According to the Caddy devs, “Caddy’s new defaults are even faster than optimized Nginx.” In addition, Caddy 2.6 implements “events” as an experimental app module, so they are still not part of the core. For example, you can use them to reload and update SSL certificates.

Of course, many other changes lead us to agree with the developers that Caddy 2.6 is one of the most exciting releases ever. You can refer to the release notes for detailed information about all changes in Caddy 2.6.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%