gzip middleware: skip bodiless, ranged, HEAD and already-compressed responses; honor q=0 #28
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
blocked
draft
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
s1d3sw1ped/jiggablend#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #26 (Blake review 852, Eva GO). The gzip middleware compresses every response when the client sends
gzipin Accept-Encoding. That's wrong or wasteful in several cases.Don't gzip
Rangeheader.Content-Encoding.Also
gzip;q=0means no gzip.Flushthrough so streaming handlers still flush.Done when
go test ./...passes.