httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44623] New: Accept-Encoding header missing for the 1st request
Date Tue, 18 Mar 2008 12:08:04 GMT

           Summary: Accept-Encoding header missing for the 1st request
           Product: Apache httpd-2
           Version: 2.2.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_negotiation

The client's Accept-Encoding header data is not visible until/unless server
sends Content-Encoding header. 
When any (even empty) Content-Encoding was sent, Accept-Encoding becomes
visible on the next request session.
I.e. you simply don't know accepted encodings until the second session.

It makes it impossible to send gzips for single-page requests.
Sites with gzipped cache waste resources decompressing it for single-page
requests. Even when they should't.

header('Content-Encoding: text/html');
// 1st req - n/a, 2nd - available

If you don't believe PHP (despite that it gets all Apache header data
you can check Apache HTTP:Accept-Encoding directly. It's empty.

Apache 2.2.6
Tested on: Debian, CentOS, FreeBSD

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message