aickin / shrink-ray

Node.js compression middleware
MIT License
268 stars 21 forks source link

Clarify debug on 304 requests #12

Open peteruithoven opened 7 years ago

peteruithoven commented 7 years ago

Usually when a request is successfully compressed the following is logged:

  compression br compression +0ms
GET /css/main.css 200 9.266 ms - -

But currently when a 304 request is done the following is logged:

  compression undefined not compressible +31ms
  compression no compression: filtered +0ms
GET /css/main.css 304 2.259 ms - -

When getting to know this library this was very confusion, the behaviour looks like a bug. Is there any way to clarify this?