https://issues.apache.org/bugzilla/show_bug.cgi?id=46132
Summary: Allow force-no-vary without forcing HTTP 1.0
Product: Apache httpd-1.3
Version: HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P2
Component: core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
This patch allows one to suppress an unnecesary or
inaccurate Vary header without introducing new problems
by forcing a downgrade to HTTP 1.0 instead of 1.1.
Currently, the force-no-vary environment variable can be
set to avoid having Apache send a Vary header when it would
otherwise send one unnecesarily. An example is that if
force-no-vary is not set, using mod_rewrite will often
cause a Vary header to be sent even when it shouldn't be.
Suppressing the inaccurate or unnecesary Vary header is
important due to the fact that the most popular browser
does not handle the header properly.
The current force-no-vary handling, however, also forces
a downgrade to HTTP 1.0 just in case the Vary really was
needed after all and HTTP 1.1 caches might have needed it.
This unexpected side effect of turning the clock back
to the deprecated protocol creates the well known problems
which led to 1.1.
Most often, force-no-vary is set precisely _because_ the
developer knows that the Vary header which would otherwise
be produced is not necesary and removing it will either
improve cacheability or at least not create caching
problems. This is the majority of cases there is no
need to force HTTP version 1.0 to protect caches.
The existing "force-no-vary" variable is left with it's
old but not intuitive behavior of causing a downgrade to
HTTP 1.0. To allow a developer to _only_ suppress the
vary header _without_ other unexpected effects we introduce
"force-no-vary-keep-1.1".
--
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]