Selectively enable GZIP when HTTP referer matches external URL of GitLab host
gzip is disabled for HTTPS for a number of reasons, but Rails has anti-BREACH measures in place for CSRF tokens. In addition, we can mitigate the risk of this attack further by enabling GZIP only when the HTTP referer matches the GitLab origin.
For more details, see:
Edited by Stan Hu
Merge request reports
Activity
Please register or sign in to reply