Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6558793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:14:36+00:00 2026-05-25T13:14:36+00:00

I recently discovered something (that surprises me) when opening an audio file in firefox

  • 0

I recently discovered something (that surprises me) when opening an audio file in firefox or chrome. If I don’t specify the HTTP response header “Accept-Ranges: bytes”, firefox won’t be able to determine the length of the ogg file (in seconds) before reaching the end in playback. Chrome will discover the length of the ogg file (in seconds), but the audio player appears to crash when it reaches the end, and refuses to re-play the file after the crash. Other browsers were not tested.

Working Http response headers:

HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Type: application/ogg
Content-Length: 245646

Failing Http response headers:

HTTP/1.1 200 OK
Content-Type: application/ogg
Content-Length: 245646

This is strange to me, because I’m not using any partial-content ranges. My server implementation doesn’t even support them (so I think my server might be lying when it says “Accept-Ranges: bytes”). I certainly don’t see why this header should be required for playback within the browser. Do both browsers just have bugs, which are exposed when I don’t set the Accept-Ranges header? This seems unlikely to me. Can anyone explain?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:14:37+00:00Added an answer on May 25, 2026 at 1:14 pm

    Not sure this is a bug or just a skewed interpretation of the standard – section 14.5 . The standard states MAY and not MUST…

    OTOH it can be that for being able to use an audio-stream and/or seeking etc. the implemented audio playback modules need this header… you can try out what happens if you submit “Accept-Ranges: none”… if they are a bit http 1.1 conforming than it just works…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As almost everybody knows strings in Java are immutable. Recently I discovered something that
I've discovered something pretty amazing that works recently. I am wanting to know if
I recently discovered that something compiles(not sure that it's legal though). My need for
While looking for something else in header files and documentation, I recently discovered the
Recently, I discovered that the Web.Config file contains an <appSettings> section which seemed good
I recently discovered GWT-Platform (GWTP) and am loving the architecture. However, I'm finding that
I recently discovered that all Windows 7 machines have an handwriting recognition API within
I recently discovered that when you have a page set to session readonly and
I recently discovered that I can use lambdas to create simple event handlers. I
I recently discovered that a sql query that was running fine earlier is now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.