79692041

Date: 2025-07-06 19:39:09
Score: 0.5
Natty:
Report link

While the accepted answer is a good one, it does not differentiate between CRIME and BREACH. For a full understanding it is helpful to understand its differences.

In general: The compressed data should not contain secrets. And it should not reflect user input. If it does not, you are safe. As Javascript usually contains no secrets and also contains no user input, it can be safe. But there is a catch:

What I am writing is covering Javascript. If your content is different and contains secrets, you should not use gzip. One example would be to transmit a confirmation code for 2FA.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Christian Esken