httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44623] New: Accept-Encoding header missing for the 1st request
Date Tue, 18 Mar 2008 12:08:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44623

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: kostromin@gmail.com


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.

Verification:
<?
header('Content-Encoding: text/html');
echo $_SERVER['HTTP_ACCEPT_ENCODING'];
// 1st req - n/a, 2nd - available
?>

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

---
Apache 2.2.6
Tested on: Debian, CentOS, FreeBSD


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message