caddy-frontend: Fix prefer-gzip with https-only

Due to missing test and rare condition, if https-only and
prefer-gzip-encoding-to-backend were true accessing http:// of the
slave resulted with redirecting to the https:// url with prefer-gzip
added to the path, which is fixed and tested here.
1 job for 1.0
Status Job ID Name Coverage
  External
failed SLAPOS-SR-TEST-MASTER