Hello,
iam currently trying to find a way to toggle the GZIP compression dynamically inside the access_phase.
As far as I know if statements always run before the lua code so it's not possbile to set a variable like $use_gzip inside a lua block
and the checking it inside the nginx config
if ($use_gzip = true) {
gzip on;
}
Is the only possible way to achieve this by changing the core GZIP module from nginx or is there any other solution for this.
Thanks in advance
Till