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 40090] - mod_deflate/mod_mem_cache issues
Date Tue, 25 Jul 2006 19:06:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40090>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40090





------- Additional Comments From apacheuser123@hotmail.com  2006-07-25 19:06 -------
Ruediger Pluem, Thank you very much for the fix. Sorry I couldn't test your
patch before today. Anyways, I applied the patch and ran some tests. It seems to
have fixed the issue that was reported.

But, I noticed another problem. Here's what's happening...

#############
First Request ( Works fine-Caches the compressed content correctly )
#############
[root@local]# lwp-request -uedsx http://localhost:80/Main.do -H 
Accept-Encoding:gzip,deflate
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://localhost:80/Main.do
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 670 bytes
LWP::Protocol::collect: read 4096 bytes
LWP::Protocol::collect: read 2836 bytes
LWP::UserAgent::request: Simple response: OK
GET http://localhost:80/Main.do
200 OK
Cache-Control: no-store, must-revalidate, post-check=0, pre-check=0
Connection: close
Date: Tue, 25 Jul 2006 18:42:12 GMT
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 7602
Content-Type: text/html;charset=ISO-8859-1
Expires: Tue, 25 Jul 2006 18:45:13 GMT
Last-Modified: Tue, 25 Jul 2006 18:42:13 GMT
Client-Date: Tue, 25 Jul 2006 18:42:13 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1

	error_log
	#########
        [Tue Jul 25 11:42:12 2006] [debug] mod_cache.c(131): Adding CACHE_SAVE
filter for /Main.do
	[Tue Jul 25 11:42:12 2006] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /Main.do
	***snip fetches data correctly***
	[Tue Jul 25 11:42:13 2006] [debug] mod_deflate.c(447): [client 127.0.0.1] Zlib:
Compressed 35547 to 7584 : URL /Main.do
	[Tue Jul 25 11:42:13 2006] [debug] mod_headers.c(612): headers:
ap_headers_output_filter()
	[Tue Jul 25 11:42:13 2006] [debug] mod_cache.c(621): cache: Caching url: /Main.do
	[Tue Jul 25 11:42:13 2006] [debug] mod_cache.c(627): cache: Removing
CACHE_REMOVE_URL filter.
	[Tue Jul 25 11:42:13 2006] [debug] mod_cache.c(670): cache: Added date header
	[Tue Jul 25 11:42:13 2006] [info] mem_cache: Cached url:
http://localhost:80/Main.do?

###############
Second Request ( Works fine-Fetches compressed content from cache )
##############
[root@local]# lwp-request -uedsx http://localhost:80/Main.do -H
Accept-Encoding:gzip,deflate
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://localhost:80/Main.do
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 632 bytes
LWP::Protocol::collect: read 4096 bytes
LWP::Protocol::collect: read 2874 bytes
LWP::UserAgent::request: Simple response: OK
GET http://localhost:80/Main.do
200 OK
Cache-Control: no-store, must-revalidate, post-check=0, pre-check=0
Connection: close
Date: Tue, 25 Jul 2006 18:42:30 GMT
Age: 18
Server: Apache/2.2.2 (Unix)
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 7602
Content-Type: text/html;charset=ISO-8859-1
Expires: Tue, 25 Jul 2006 18:45:13 GMT
Last-Modified: Tue, 25 Jul 2006 18:42:13 GMT
Client-Date: Tue, 25 Jul 2006 18:42:30 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1

	error_log
	#########
	[Tue Jul 25 11:42:30 2006] [debug] mod_cache.c(280): cache: running CACHE_OUT
filter
	[Tue Jul 25 11:42:30 2006] [debug] mod_cache.c(294): cache: serving /Main.do


#############
Third Request ( Problem-It correctly detects a vary header mismatch but doesn't
cache the results. )
#############
I make the third request using a different "User-Agent" ( firefox in this case )

	error_log
	#########
	[Tue Jul 25 11:43:18 2006] [debug] cache_storage.c(246): cache_select_url():
Vary header mismatch.
	[Tue Jul 25 11:43:18 2006] [debug] mod_cache.c(131): Adding CACHE_SAVE filter
for /Main.do
	[Tue Jul 25 11:43:18 2006] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /Main.do
	***snip fetches data correctly***
	[Tue Jul 25 11:43:20 2006] [debug] mod_deflate.c(447): [client 127.0.0.1] Zlib:
Compressed 35168 to 7751 : URL /Main.do
	[Tue Jul 25 11:43:20 2006] [debug] mod_headers.c(612): headers:
ap_headers_output_filter()
	
I don't see "cache: Caching url: /Main.do" or "cache: Removing CACHE_REMOVE_URL
filter" log messages like in the first request.Looks like it caches compressed
content only for the first type of "User-Agent" ?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message