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 351909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:41:16+00:00 2026-05-12T11:41:16+00:00

Yesterday I asked about serving byte ranges from PHP. Today my question is –

  • 0

Yesterday I asked about serving byte ranges from PHP. Today my question is – how should I set Content-Type and Content-Disposition headers when serving several requested byte ranges? Should I repeat them for every byte range or should I just output them once at the beginning? Or maybe I shouldn’t output them at all because the client should already know what it is asking?

  • 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-12T11:41:16+00:00Added an answer on May 12, 2026 at 11:41 am

    Generally, the HTTP response headers should be the same (repeated) if you return the entire resource or just a portion of it; except of course for the Content-Range header which will vary.

    Remember that HTTP is stateless, so every response should be complete and able to stand on its own. If serving byte ranges, you really should also be using entity tags (ETags); so that there is no chance that a client could request and get two separate byte ranges that really belong to different revisions of the same resource.

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

Sidebar

Related Questions

One of the responses to a question I asked yesterday suggested that I should
Yesterday, I have a discussion with my colleagues about HTTP. It is asked why
This question is related to another question which I asked yesterday! List all links
While looking at a micro-optimization question that I asked yesterday ( here ), I
Yesterday, I asked this question and never really got an answer I was really
I had telephone interview question yesterday. The interviewer asked me if I had faced
This query is related to this one I asked yesterday. I have a radio
I attended a job fair yesterday and a developer asked me how I would
Yesterday I wanted to add a boolean field to an Oracle table. However, there
Yesterday, I discovered the Subversion (SVN) blame feature, and I was wondering, is this

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.