Skip to content

sec-websocket-extensions: permessage-deflate not accepted #4091

@RodrigoHamuy

Description

@RodrigoHamuy

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What versions & operating system are you using?

Wrangler v4.10.0

Please provide a link to a minimal reproduction

https://edge-chat-demo.cloudflareworkers.com/

Describe the Bug

The docs suggest that Websocket connections are compressed by default ( https://developers.cloudflare.com/workers/configuration/compatibility-flags/#websocket-compression ).

But no matter what we tried, the Cloudflare server side never accepts the permessage-deflate extension.

You can try it directly in any of the live demos from the docs: https://developers.cloudflare.com/durable-objects/demos/

For example the Cloudflare Workers Chat Demo demo: https://edge-chat-demo.cloudflareworkers.com/
Source: https://github.com/cloudflare/workers-chat-demo

Steps to reproduce:

  1. With Chrome DevTools open, go to https://edge-chat-demo.cloudflareworkers.com/
  2. Fill your name and a chat room to enter.
  3. Go to Chrome DevTools > Network > WS > and look for the websocket connection.

Expected: sec-websocket-extensions: permessage-deflate should be in the response header.
Currently: It is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions