diff --git a/CHANGELOG.md b/CHANGELOG.md index 1470482..f5ecb6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ Every user-facing change should have an entry in this changelog. Please respect ## Unreleased +- [Improvement] use caddy `encode gzip` directive to optimize transfer size (by @ghassanmas) + ## v14.1.0 (2022-10-10) - [Improvement] Upgrade Scorm XBlock to v14.0.0. (by @regisb) diff --git a/tutor/templates/apps/caddy/Caddyfile b/tutor/templates/apps/caddy/Caddyfile index cfb82fd..46a5559 100644 --- a/tutor/templates/apps/caddy/Caddyfile +++ b/tutor/templates/apps/caddy/Caddyfile @@ -20,6 +20,11 @@ } } + # This will compress requests that matches the default criteria set by Caddy. + # see https://caddyserver.com/docs/caddyfile/directives/encode + # for information about the defaults; i.e. how/when this will be applied. + encode gzip + reverse_proxy {args.0} { header_up X-Forwarded-Port {{ 443 if ENABLE_HTTPS else 80 }} }