How to implent gzip on Caddy

3 days ago I have install caddy on my VPS, how to using gzip on caddy?

Hi @anggiadiputra, welcome to the Caddy community!

Have you tried adding gzip to your Caddyfile?

only this
gzip {
level 8
min_length 1

Looks good to me!

there a better configuration for my wordpress?

A higher compression level is slower. The default is a better mix of compression and speed for mixed content. I’d probably just use gzip on its own, without overriding the defaults.

How to set up expired header ?

You can set headers with the header directive.

You could also download Caddy with the optional expires plugin and use that instead of manually setting the header.

thanks sir

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.