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 10240] New: - mod_proxy sending wrong answer for requests to cached partial content
Date Wed, 26 Jun 2002 09:35:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10240>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10240

mod_proxy sending wrong answer for requests to cached partial content

           Summary: mod_proxy sending wrong answer for requests to cached
                    partial content
           Product: Apache httpd-1.3
           Version: 1.3.23
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Mathias.Herberts@iroise.net
                CC: Mathias.Herberts@iroise.net


I have Apache 1.3.26 + mod_ssl setup as a reverse proxy using mod_rewrite +
mod_proxy.

Requests for partial content (with Range: header) to cached content are answered
by mod_proxy with a 200 code with an empty content. It seems the problem comes
from the If-Modified-Since header mod_proxy adds to the request sent to the
origin server, the origin server answers with 304 and mod_proxy returns to the
browser a 200 answer instead of a 206 with partial content or a 200 with full
content (when Unless-Modified-Since was in the original request).

Disabling the cache solves the problem but is bad for performance.

Two traces are included below, one with caching enabled, the other with caching
disabled.

The prefixes BP, PS, SP and PB mean

BP  Browser to Proxy
PS  Proxy to origin Server
SP  origin Server to Proxy
PB  Proxy to Browser

Trace #1, caching enabled.

---8<------8<------8<------8<------8<------8<------8<------8<---
-BP	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
BP	Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
BP	Accept-Language: fr
BP	Accept-Encoding: gzip, deflate
BP	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BP	Host: www.domain.com
BP	Connection: Keep-Alive

PS	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
PS	Accept-Encoding: gzip, deflate
PS	Accept-Language: fr
PS	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 200 OK
SP	Server: Microsoft-IIS/4.0
SP	Connection: close
SP	Date: Wed, 26 Jun 2002 08:02:22 GMT
SP	Content-Type: application/pdf
SP	Accept-Ranges: bytes
SP	Last-Modified: Wed, 26 Jun 2002 08:02:17 GMT
SP	ETag: "dce33ecae71cc21:1e05"
SP	Content-Length: 4009

PB	HTTP/1.1 200 OK
PB	Date: Wed, 26 Jun 2002 08:09:00 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	Accept-Ranges: bytes
PB	Last-Modified: Wed, 26 Jun 2002 08:02:17 GMT
PB	ETag: "dce33ecae71cc21:1e05"
PB	Content-Length: 4009
PB	X-Cache: MISS from www.domain.com
PB	Keep-Alive: timeout=15, max=86
PB	Connection: Keep-Alive

BP	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
BP	Accept: */*
BP	Range: bytes=1126-
BP	Unless-Modified-Since: Wed, 26 Jun 2002 08:02:17 GMT
BP	If-Range: "dce33ecae71cc21:1e05"
BP	User-Agent: contype
BP	Host: www.domain.com

PS	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: */*
PS	If-Range: "dce33ecae71cc21:1e05"
PS	Range: bytes=1126-
PS	Unless-Modified-Since: Wed, 26 Jun 2002 08:02:17 GMT
PS	User-Agent: contype
PS	If-Modified-Since: Wed, 26 Jun 2002 08:02:17 GMT
PS	If-None-Match: "dce33ecae71cc21:1e05"
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 304 Not Modified
SP	Server: Microsoft-IIS/4.0
SP	Date: Wed, 26 Jun 2002 08:02:22 GMT
SP	Connection: close
SP	ETag: "dce33ecae71cc21:1e05"
SP	Content-Length: 0

PB	HTTP/1.1 200 OK
PB	Date: Wed, 26 Jun 2002 08:09:00 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	Accept-Ranges: bytes
PB	Last-Modified: Wed, 26 Jun 2002 08:02:17 GMT
PB	ETag: "dce33ecae71cc21:1e05"
PB	Content-Length: 0
PB	X-Cache: HIT from www.domain.com (with revalidation)

BP	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
BP	Accept: */*
BP	Accept-Encoding: gzip, deflate
BP	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BP	Host: www.domain.com
BP	Connection: Keep-Alive

PS	GET /nsw-cgi/htdocs/10250784326661.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: */*
PS	Accept-Encoding: gzip, deflate
PS	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
PS	If-Modified-Since: Wed, 26 Jun 2002 08:02:17 GMT
PS	If-None-Match: "dce33ecae71cc21:1e05"
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 304 Not Modified
SP	Server: Microsoft-IIS/4.0
SP	Date: Wed, 26 Jun 2002 08:02:23 GMT
SP	Connection: close
SP	ETag: "dce33ecae71cc21:1e05"
SP	Content-Length: 0

PB	HTTP/1.1 200 OK
PB	Date: Wed, 26 Jun 2002 08:09:00 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	Accept-Ranges: bytes
PB	Last-Modified: Wed, 26 Jun 2002 08:02:17 GMT
PB	ETag: "dce33ecae71cc21:1e05"
PB	Content-Length: 0
PB	X-Cache: HIT from www.domain.com (with revalidation)
PB	Keep-Alive: timeout=15, max=81
PB	Connection: Keep-Alive
---8<------8<------8<------8<------8<------8<------8<------8<---

trace #2, caching disabled for *.pdf (NoCache *.pdf)

---8<------8<------8<------8<------8<------8<------8<------8<---
-BP	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
BP	Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
BP	Accept-Language: fr
BP	Accept-Encoding: gzip, deflate
BP	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BP	Host: www.domain.com
BP	Connection: Keep-Alive

PS	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
PS	Accept-Encoding: gzip, deflate
PS	Accept-Language: fr
PS	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 200 OK
SP	Server: Microsoft-IIS/4.0
SP	Connection: close
SP	Date: Wed, 26 Jun 2002 08:11:01 GMT
SP	Content-Type: application/pdf
SP	Accept-Ranges: bytes
SP	Last-Modified: Wed, 26 Jun 2002 08:10:55 GMT
SP	ETag: "e4192fffe81cc21:1e05"
SP	Content-Length: 4009

PB	HTTP/1.1 200 OK
PB	Date: Wed, 26 Jun 2002 08:17:38 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	Accept-Ranges: bytes
PB	Last-Modified: Wed, 26 Jun 2002 08:10:55 GMT
PB	ETag: "e4192fffe81cc21:1e05"
PB	Content-Length: 4009
PB	X-Cache: MISS from www.domain.com
PB	Keep-Alive: timeout=15, max=75
PB	Connection: Keep-Alive

BP	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
BP	Accept: */*
BP	Range: bytes=1126-
BP	Unless-Modified-Since: Wed, 26 Jun 2002 08:10:55 GMT
BP	If-Range: "e4192fffe81cc21:1e05"
BP	User-Agent: contype
BP	Host: www.domain.com

PS	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: */*
PS	If-Range: "e4192fffe81cc21:1e05"
PS	Range: bytes=1126-
PS	Unless-Modified-Since: Wed, 26 Jun 2002 08:10:55 GMT
PS	User-Agent: contype
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 206 Partial content
SP	Server: Microsoft-IIS/4.0
SP	Connection: close
SP	Date: Wed, 26 Jun 2002 08:11:01 GMT
SP	Content-Type: application/pdf
SP	ETag: "e4192fffe81cc21:1e05"
SP	Content-Length: 2883
SP	Content-Range: bytes 1126-4008/4009

PB	HTTP/1.1 206 Partial content
PB	Date: Wed, 26 Jun 2002 08:17:38 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	ETag: "e4192fffe81cc21:1e05"
PB	Content-Length: 2883
PB	Content-Range: bytes 1126-4008/4009
PB	X-Cache: MISS from www.domain.com

BP	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
BP	Accept: */*
BP	Accept-Encoding: gzip, deflate
BP	Range: bytes=1126-
BP	If-Range: "e4192fffe81cc21:1e05"
BP	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BP	Host: www.domain.com
BP	Connection: Keep-Alive

PS	GET /nsw-cgi/htdocs/1025079013204.pdf HTTP/1.1
PS	Host: aaa.bbb.ccc.ddd:ppp
PS	Accept: */*
PS	Accept-Encoding: gzip, deflate
PS	If-Range: "e4192fffe81cc21:1e05"
PS	Range: bytes=1126-
PS	User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
PS	X-Forwarded-For: www.xxx.yyy.zzz
PS	X-Forwarded-Host: www.domain.com
PS	X-Forwarded-Server: www.domain.com
PS	Connection: close

SP	HTTP/1.1 206 Partial content
SP	Server: Microsoft-IIS/4.0
SP	Connection: close
SP	Date: Wed, 26 Jun 2002 08:11:01 GMT
SP	Content-Type: application/pdf
SP	ETag: "e4192fffe81cc21:1e05"
SP	Content-Length: 2883
SP	Content-Range: bytes 1126-4008/4009

PB	HTTP/1.1 206 Partial content
PB	Date: Wed, 26 Jun 2002 08:17:39 GMT
PB	Server: Microsoft-IIS/4.0
PB	Content-Type: application/pdf
PB	ETag: "e4192fffe81cc21:1e05"
PB	Content-Length: 2883
PB	Content-Range: bytes 1126-4008/4009
PB	X-Cache: MISS from www.domain.com
PB	Keep-Alive: timeout=15, max=100
PB	Connection: Keep-Alive
---8<------8<------8<------8<------8<------8<------8<------8<---

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


Mime
View raw message