logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Header append Vary User-Agent env=!dont-vary ?
Author
krishna.rgm



Joined: 21 May 2013
Posts: 3

PostPosted: Wed 29 May '13 11:58    Post subject: Header append Vary User-Agent env=!dont-vary ? Reply with quote

Hi All,

In one of our application, we have the following entries in httpd.conf
===============================
<IfModule mod_headers.c>
# Make sure proxies don.t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
===============================

Requesting to kindly confirm following

1. What is the importance of above parameters
1. Above mentioned entries by default present in httpd.conf or not.
2. If this entry is disabled through hashing it out, what would be its impact on application.

Thanks
Krishna
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3117
Location: Hilversum, NL, EU

PostPosted: Wed 29 May '13 12:17    Post subject: Reply with quote

See for details:

http://httpd.apache.org/docs/2.4/mod/mod_deflate.html#proxies

When compressed/deflate then this header is send:

Vary => User-Agent,Accept-Encoding

When not compressed (e.g. gif, see http://httpd.apache.org/docs/2.4/mod/mod_deflate.html#recommended ) then the header:

Vary => User-Agent

Not standard, only needed/advised when Deflate is set to on.
Back to top
krishna.rgm



Joined: 21 May 2013
Posts: 3

PostPosted: Wed 29 May '13 12:35    Post subject: Header append Vary User-Agent env=!dont-vary ? Reply with quote

Thanks for the information.

So As per you words, below parameters were not present by default in Apache. Correct me, if Iam wrong
"Header append Vary User-Agent env=!dont-vary"

Thanks
Krishna
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3117
Location: Hilversum, NL, EU

PostPosted: Wed 29 May '13 12:50    Post subject: Reply with quote

Look for the default/original config files in: ...\conf\original
Back to top
krishna.rgm



Joined: 21 May 2013
Posts: 3

PostPosted: Wed 29 May '13 15:51    Post subject: Reply with quote

I have checked in default and original httpd.conf. There was no entry of the parameters which I have mentioned. And by default headers_module has disabled even deflate module also. Now I understand that we have to manually configure the headers and deflate module in Apache.
Thank you very much Steffen for your kind support in getting the above information.


Thanks
Steffen
Back to top


Reply to topic   Topic: Header append Vary User-Agent env=!dont-vary ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache