Hello,
 We've been having trouble getting caching in Resin 3.1.4 Pro to work
on FC6.  It does work in our test environment, but not in production.
Everything looks the same:  this test jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1" session="false"%>
<%! int counter; %>
<%
response.setHeader("Cache-Control", "max-age=15");
response.addHeader("Cache-Control", "public");
%>
Count: <%= counter++ %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>cache test</title>
</head>
<body>
<h1>test</h1>
<img src="images/blah.jpg">
</body>
</html>


The cache.log is created, but logs only a startup message:

[2008/01/13 22:50:56.169] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/13 23:37:14.898] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/13 23:43:31.879] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/14 00:11:09.520] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/14 00:14:53.424] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/14 00:25:35.853] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/14 00:41:56.857] Proxy Cache disk-size=1024M memory-size=64M
[2008/01/14 01:49:27.968] Proxy Cache disk-size=1024M memory-size=256M
[2008/01/14 23:12:57.908] Proxy Cache disk-size=1024M memory-size=256M
[2008/01/15 00:16:37.125] Proxy Cache disk-size=1024M memory-size=256M

The headers of the page returned look I think.  I followed the advice
from elsewhere on this site to override the Cache-Control: private
header which is getting set somehow, even though this page has no
session and no cookies - regardless it is coming back as public, but
the page is still not cached.

HTTP/1.x 200 OK

Server: Resin/3.1.4

Cache-Control: max-age=15, public

Content-Type: text/html; charset=ISO-8859-1

Transfer-Encoding: chunked

Date: Tue, 15 Jan 2008 08:40:28 GMT



Also this is what is in resin.conf:

   <resin:if test="${isResinProfessional}">
     <cache path="cache" memory-size="256M">
       <!-- Vary header rewriting for IE -->
       <rewrite-vary-as-private/>
     </cache>
   </resin:if>



Any ideas.....it is really stumping me.  Any suggestions of what else
I could try to debug this at least?  More logs to turn on, common
problems in this area, anything like that?

Thanks for any help,

Gerard Lynch

--
http://skreemr.com
gerard at skreemr.com


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to