Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 647
    • Issues 647
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 93
    • Merge requests 93
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Merge requests
  • !653

Fix varnish chunked and general improvements

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged feld requested to merge feld/pleroma:fix-varnish-chunked into develop Jan 10, 2019
  • Overview 0
  • Commits 3
  • Pipelines 1
  • Changes 1

Make varnish play nice with chunked responses from media proxy. This caches chunks for 10 minutes which is more than enough time to have partials stored in memory. The full file will get cached and replace the chunks, so the TTL of 10 minutes here is no problem.

Also some cleanup for consistent indentation and removal of piping all requests to the backend by default. Piping everything is really not great for performance. Objects that can't be cached won't be, and that's most of the backend responses due to cookies.

Streaming is also enabled by default in varnish, so explicitly enabling it here is wasteful. Etags don't have to be stripped. Support more file extensions for caching media/static objects.

Edited Jan 10, 2019 by feld
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-varnish-chunked