Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #25590

Closed (moved)
Open
Opened Mar 22, 2018 by Tom Ritter@tom

Add a configuration line to the consensus-health Apache config

SetEnvIf X-Requested-With XMLHttpRequest no-gzip

#25588 (moved) is a feature to allow users to load individual relay details on the index page; without having to load the entire detailed page. It uses Range requests.

consensus-health.torproject.org currently supports Range requests, so no configuration needed for that:

curl -H "Range: bytes=0-100" -H "X-Requested-With: XMLHttpRequest" https://consensus-health.torproject.org

But using compression in conjunction with Range requests confuses Apache. (Should the Range be before the compression, or after? Apparently it's never been decided.)

So for AJAX requests we need to disable compression. The only thing making AJAX requests to consensus-health is my new feature so we're not going to be sending a ton of data uncompressed.

Once the configuration is correct, the following two commands will have the same output:

curl -H "Range: bytes=0-100" -H "X-Requested-With: XMLHttpRequest" https://consensus-health.torproject.org curl -H "Range: bytes=0-100" -H "X-Requested-With: XMLHttpRequest" https://consensus-health.torproject.org --compressed

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#25590