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

  • SEARCH
  • Home
  • 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 6135353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:28:08+00:00 2026-05-23T17:28:08+00:00

I building a module for compressing HTTP output. Reading the spec , I haven’t

  • 0

I building a module for compressing HTTP output. Reading the spec, I haven’t found a clear distinction on a couple of things:

Accept-Encoding:

Should this be treated the same as a Accept-Encoding: * or as if no header is present?

Or what if I don’t support gzip, but I get a header like this:

Accept-Encoding: gzip

Should I return a 406 error or just return the data unencoded?

EDIT:

I’ve read over the spec a few times. It mentions my first case, but it doesn’t define what the behavior of the server should be.

Should I treat this case as if the header is not present? Or should I return a 406 error because there’s no way to encode something given the field value (” isn’t a valid encoding).

  • 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-23T17:28:09+00:00Added an answer on May 23, 2026 at 5:28 pm

    There is written everything in the Spec: 14.3 Accept-Encoding:

    The special “*” symbol in an Accept-Encoding field matches any
    available content-coding not explicitly listed in the header
    field.

    If an Accept-Encoding field is present in a request, and if the server cannot send a response which is acceptable according to the Accept-Encoding header, then the server SHOULD send an error response with the 406 (Not Acceptable) status code.

    edit:

    If the Accept-Encoding field-value is empty, then only the “identity”
    encoding is acceptable.

    In this case, if “identity” is one of the available content-codings, then the server SHOULD use the “identity” content-coding, unless it has additional information that a different content-coding is meaningful to the client.

    What is “identity”

    identity
    The default (identity) encoding; the use of no transformation whatsoever. This content-coding is used only in the Accept- Encoding header, and SHOULD NOT be used in the Content-Encoding header.

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

Sidebar

Related Questions

When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module
I am building a Drupal module that (among other things) creates multiple nodes of
using node.js, the net module for building a tcp server which can hande http
We're building a module for generating HTML for email newsletters. We've looked into using
When building a Perl module ExtUtils::MakeMaker uses the flags defined in Config.pm (see perldoc
I am building a FAQ module for my site and I want to be
I am building a project involving natural language processing, since the nlp module currently
Currently I'm building an application using latest Prism for Silverlight 4. I've a module
I'm building a comment module for my web application. In the application I need
I'm building a server that loads modules. Each module is a .jar file. Inside

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.