Skip to content

The http cache response duplicate end of chunked encoding: 0\r\n\r\n #668

@vicanso

Description

@vicanso

Describe the bug

After I enabled the http cache, if the request was read from the cache, an extra 30 0d 0a 0d 0a was returned.

Image
  • /terminal-large.png get from cache, end data: \r\n0\r\n\r\n
  • Continuation: 0\r\n\r\n
  • /api/terminal-large.png get from upstream, end data: \r\n0\r\n\r\n
Image

Pingora info

Please include the following information about your environment:

Pingora version: 4de912e
Rust version: cargo 1.88.0 (873a06493 2025-05-10)
Operating system version: macos

Steps to reproduce

Please provide step-by-step instructions to reproduce the issue. Include any relevant code
snippets.

Expected results

What were you expecting to happen?

Observed results

What actually happened?

Additional context

What other information would you like to provide? e.g. screenshots, how you're working around the
issue, or other clues you think could be helpful to identify the root cause.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions