swift should return Accept-Ranges header
Bug #750752 reported by
John Dickinson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
Scott Simpson |
Bug Description
swift should send an "Accept-Ranges: bytes" header on responses to (at least) GET and HEAD requests
Related branches
lp:~sasimpson/swift/lp750752
- David Goetz (community): Approve
-
Diff: 139 lines (+73/-2)2 files modifiedswift/proxy/server.py (+3/-0)
test/unit/proxy/test_server.py (+70/-2)
Changed in swift: | |
assignee: | nobody → ssimpson (sasimpson) |
Changed in swift: | |
status: | New → Fix Committed |
Changed in swift: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This would be very useful - I know "Accept-Ranges: bytes" is not mandatory but it is useful to advertise the fact that swift does support byte range requests.
"Accept-Ranges: bytes" is super useful for situations like HTML5 video playback (e.g. mp4, ogg, webm) on browsers like Chrome and Firefox - they look for it to check if byte range is supported, then do a byte range request to seek to the end of the file and check the duration of the file. You can then start playing a video straight away. If the server does not advertise the fact, playback is crappy as it can't stream/play straight away as it has to buffer the whole file to figure out the duration.
I hope the above makes sense. :)