Skip to content

Cache-Control no-transform disables compression #34521

Open
@balki

Description

@balki

Description

Gitea sets "no-transform" in cache control headers . This makes webserver to disable compression. E.g. In caddy.

  1. Is the cloudflare-minify problem still present or is it fixed by cloudflare?
  2. According to doc, I don't think this is a right usage of this header.
  3. gitea supports ENCODE_GZIP. However caddy supports zstd compression which is better.
  4. Can we have a way to opt out of this for non-cloudflare-minify users ?

Gitea Version

v1.23.8

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Archlinux

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions