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: [email protected]
ReportedBy: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]