Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #18754

Closed (moved)
(moved)
Open
Created Apr 07, 2016 by Karsten Loesing@karsten

Please configure and enable mod_deflate for onionoo.torproject.org on omeiense

Context: So far, the Jetty process running on port 8080 where Apache was forwarding requests was previously deflating responses using the following filter:

  <filter>
    <filter-name>GzipFilter</filter-name>
    <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
    <init-param>
      <param-name>mimeTypes</param-name>
      <param-value>text/html,text/xml,text/plain,application/json</param-value>
    </init-param>
    <init-param>
      <param-name>excludedAgents</param-name>
      <param-value>gozilla,traviata</param-value>
    </init-param>
    <init-param>
      <param-name>minGzipSize</param-name>
      <param-value>2048</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>GzipFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

But I fear that this caused problems in combination with Apache's mod_cache module (see #18663 (moved) for details if you care a whole lot). I want to try moving all response post-processing to Apache, which would include compression and caching.

Can we build something similar as the Jetty filter above (not necessarily the exact same thing) using Apache's mod_deflate module?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking