diff --git a/install/Caddyfile b/install/Caddyfile index 72bfd4265..683d69994 100644 --- a/install/Caddyfile +++ b/install/Caddyfile @@ -2,7 +2,7 @@ example.com { root * /path/to/root - encode utf8 + encode gzip zstd php_fastcgi unix//run/php/php-fpm.sock try_files {path} {path}/ /index.php?{query} file_server @@ -16,6 +16,11 @@ example.com { respond @blocked 404 redir /sitemap.xml /sitemap/sitemap.xml + + @html_css_js { + path *.html *.css *.js *.json *.xml *.txt + } + header @html_css_js Content-Type "{mime}; charset=utf-8" } # Refer to the Caddy docs for more information: