Hi Axel-Stephane!
I see why you can suspect Apache httpd of setting these headers, but AFAIK from
having used Apache 2.0.x
> and mod_proxy for a number of years, Apache does not "rewrite"
headers unless you do so explicitly in the
> configuration.
I agree but, really, I can't figure out. Theres no such directives in
my configuration. But I gonna check out by the third time. The odd
thing is that other files, like GIF and JPG which also backend server
generates the 'Cache-Control' this rewrite doesn't happens.
You will note that in the first case the application replies HTTP/1.0 and in
the second, HTTP/1.1. Did you use wget in both cases ?
Yes, I did. Maybe due a 'KeepAlive On' in apache....
By the way, wget uses HTTP 1.0 with a 'Connection' header. it is a
violation, isn't it?
Could you possibly snoop/sniff the traffic apache->server using
snoop/tcpdump/ethereal ?
That could shed some light on who sets the headers the way the client receives
them.
It would however require that you install the reverse proxy and the application
on different servers.
Here comes wget->apache connection:
GET /srh/pos-graduacao/docs-inscricao/ficha_de_inscricao.pdf HTTP/1.0
User-Agent: Wget/1.9.1
Host: myfrontendserver.org
Accept: */*
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Fri, 01 Feb 2008 12:01:23 GMT
Server: Zope/(Zope 2.9.8-final, python 2.4.4, linux2) ZServer/1.1
Plone/2.5.3-final
Content-Length: 49665
X-Cache-Headers-Set-By: CachingPolicyManager:
/intranets/restrito/caching_policy_manager
Accept-Ranges: bytes
Expires: Fri, 01 Feb 2008 12:06:25 GMT
X-Caching-Rule-Id: downloads
Cache-Control: -
Content-Type: application/pdf
X-Header-Set-Id: 10
Via: 1.0 myfrontendserver.org
Pragma: -
X-Cluster-Server: plutao
Connection: close
Here comes the apache->server connection:
GET
/VirtualHostBase/http/mybackendserver.org:80/intranets/restrito/VirtualHostRoot/srh/pos-graduacao/docs-inscricao/ficha_de_incricao.pdf
HTTP/1.1
Host: localhost:9080
User-Agent: Wget/1.9.1
Accept: */*
Max-Forwards: 10
Via: 1.0 myfrontendserver.org
X-Forwarded-For: AAA.BBB.CCC.DDD
X-Forwarded-Host: myfrontendserver.org
X-Forwarded-Server: myfrontendserver.org
HTTP/1.1 200 OK
Server: Zope/(Zope 2.9.8-final, python 2.4.4, linux2) ZServer/1.1
Plone/2.5.3-final
Date: Fri, 01 Feb 2008 11:36:26 GMT
Content-Length: 49665
X-Cache-Headers-Set-By: CachingPolicyManager:
/intranets/restrito/caching_policy_manager
Accept-Ranges: bytes
Expires: Fri, 01 Feb 2008 11:41:26 GMT
X-Caching-Rule-Id: downloads
Cache-Control: max-age=300, must-revalidate
Content-Type: application/pdf
X-Header-Set-Id: 10
Thanks a lot, regards
Lucas Brasilino
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]