Traefik Rewrite Body Compression

Fix for Traefik rewrite-body plugin (packruler/rewrite-body) failing with "flate: corrupt input before offset 5" errors when backends send gzip-compressed responses. Use when: (1) rewrite-body plugin logs show "Error loading content: flate: corrupt input before offset 5", (2) rybbit analytics script injection breaks WebSocket connections or authentication flows, (3) HA Companion app stuck in external_auth loop with repeated GET /?external_auth=1 requests, (4) mobile apps fail to connect while browser works fine, (5) HTTP 499 errors on webhook POST requests. Root cause: the plugin attempts to decompress all responses before checking content-type, and fails on certain gzip encodings, corrupting the response body.

majiayu000 Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/devops/traefik-rewrite-body-compression commit 8531dace4d

Frequently asked questions

npx skillmds@latest add majiayu000/traefik-rewrite-body-compression