wow that is odd.

Do you want to post your httpd.conf as an attachment?

On Tue, Apr 14, 2009 at 4:06 AM, Janine Sisk <jan...@furfly.net> wrote:
> Mark, thanks for the tip - it sounded logical but unfortunately doesn't seem
> to be the case.  I didn't have any expire directives in the conf file but I
> added this anyway:
> ExpiresActive On
> ExpiresDefault M86400
> and it doesn't seem to be making any difference.  I tried commenting out the
> code for mod_headers and then the first Cache-Control line is missing, but
> the one with max-age=0 is still there.
> just for grins, I tried using telnet to request the URL instead of going to
> it in the browser.  I then found the corresponding header in Apache's cache
> (this one is the actual HTML, the rest are all images), so it's more of an
> apples-to-apples comparison.  Both are below.  The interesting thing is that
> the cached header includes a lot more information, including the erroneous
> "Cache-Control: max-age=0".  Some of it comes from mod_proxy, specifically
> the X-Forwarded part.   But there's nothing in the docs to suggest that
> mod_proxy does anything with Cache-Control...
> I've Googled quite a bit and have found other people with similar issues but
> all the ones I found went unanswered.  Seems I've found a hard-to-solve
> problem.  Lucky me. :)
> janine
> What Apache caches:
> http://pug.furfly.com:8080/public/index?
> MIME-Version: 1.0
> Date: Mon, 13 Apr 2009 17:34:43 GMT
> Server: AOLserver/4.0.10
> Content-Type: text/html; charset=utf-8
> Content-Length: 127358
> Set-Cookie:
> ad_session_id=82810314%2c0%2c0+%7b504+1239645283+E08EA2C07D8750971544D8B6671200EAF699C98D%7d;
> Path=/; Max-Age=1200
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
> AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
> Cache-Control: max-age=0
> Accept:
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> Cookie: __qca=482b4ca6-9b388-0907d-155ca;
> __utma=146890400.1264817709.1186083344.1190161690.1203300241.4;
> __utma=69865361.4243060582732480000.1238996261.1239575290.1239642259.7;
> __utmc=69865361;
> __utmz=69865361.1238996261.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
> ad_session_id=82810314%2c0%2c0+%7b875+1239644942+FC98624F29A05DF429C7EEDE1E3233089A2BF039%7d;
> JSESSIONID=1428D1022033F5CAB31B6FDA6F349021
> Host: pug.furfly.com:8080
> X-Forwarded-For: 173.50.249.21
> X-Forwarded-Host: pug.furfly.com:8080
> X-Forwarded-Server: pug.furfly.com
> What telnet receives:
> GET /public/index HTTP/1.0
> HTTP/1.1 200 OK
> Date: Mon, 13 Apr 2009 17:36:00 GMT
> Server: Apache/2.2.11 (Unix)
> Set-Cookie:
> ad_session_id=82810314%2c0%2c0+%7b504+1239645283+E08EA2C07D875097154
> 4D8B6671200EAF699C98D%7d; Path=/; Max-Age=1200
> MIME-Version: 1.0
> Content-Length: 127358
> Age: 77
> Connection: close
> Content-Type: text/html; charset=utf-8
>
>
>
> On Apr 13, 2009, at 5:36 AM, Mark Aufflick wrote:
>
> Hi Janine,
>
> The key with Apache documentation is to know which module is going to
> do what you want. Once you've figured that out, the docs are quite
> clear (with the exception of mod_rewrite of course :)
>
> In this case I happen to know that the Cache-control header is
> generated by mod_expires, and you will find how to control it here:
>
> http://httpd.apache.org/docs/2.0/mod/mod_expires.html
>
> Your httpd config might have expiration set by default, or by file
> extension.
>
> Mark.
>
> On Mon, Apr 13, 2009 at 9:32 AM, Janine Sisk <jan...@furfly.net> wrote:
>
> This is only peripherally related to AOLserver, but there are so many
>
> helpful and knowledgeable people on this list, I'm hoping someone will
>
> recognize this.
>
> I'm still working on that Apache/Tomcat caching thing I wrote about a few
>
> days ago.  The client is insisting on Apache and nothing but Apache, so I
>
> haven't investigated Squid, Varnish or anything else so far.
>
> I figured out how to use mod_cache to get Apache to cache the content, but
>
> it's kind of useless because there's a "Cache-Control:  max-age=0" header
>
> that causes it to request a new copy every time.  The problem is, I can't
>
> figure out where it's coming from.
>
> I've eliminated Tomcat from the loop entirely, so the fault lies somewhere
>
> between AOLserver and Apache:
>
> - telnet to AOLserver directly - no cache-control at all
>
> GET /public/index HTTP/1.0
>
> HTTP/1.0 200 OK
>
> Set-Cookie:
>
> ad_session_id=82810106%2c0%2c0+%7b514+1239579021+56A366FC5E92AF28DB87E48214C6C4CE8C0581BB%7d;
>
> Path=/; Max-Age=1200
>
> MIME-Version: 1.0
>
> Date: Sun, 12 Apr 2009 23:10:21 GMT
>
> Server: AOLserver/4.0.10
>
> Content-Type: text/html; charset=utf-8
>
> Content-Length: 127358
>
> Connection: close
>
> - have Apache send request to AOLserver via mod_proxy (ProxyPassMatch) - has
>
> Cache-Control with max-age=0
>
> Last-Modified: Mon, 30 Mar 2009 11:26:14 GMT
>
> MIME-Version: 1.0
>
> Date: Sun, 12 Apr 2009 23:03:02 GMT
>
> Server: AOLserver/4.0.10
>
> Content-Type: image/gif
>
> Content-Length: 395
>
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
>
> AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
>
> Referer: http://pug.furfly.com:8080/public/index
>
> Cache-Control: max-age=0
>
> Accept: */*
>
> Accept-Language: en-us
>
> Accept-Encoding: gzip, deflate
>
> - use mod_headers to add a Cache-Control header - now we have two:
>
> Last-Modified: Mon, 30 Mar 2009 11:26:14 GMT
>
> MIME-Version: 1.0
>
> Date: Sun, 12 Apr 2009 23:15:04 GMT
>
> Server: AOLserver/4.0.10
>
> Content-Type: image/gif
>
> Content-Length: 395
>
> Cache-Control: max-age=999
>
> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
>
> AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
>
> Referer: http://pug.furfly.com:8080/public/index
>
> Cache-Control: max-age=0
>
> Accept: */*
>
> Accept-Language: en-us
>
> Accept-Encoding: gzip, deflate
>
> It appears that Apache is adding the rogue header, but I don't know how to
>
> tell it to stop!
>
> Any suggestions?
>
> janine
>
> ---
>
> Janine Sisk
>
> President/CEO of furfly, LLC
>
> 503-693-6407
>
>
>
>
> --
>
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
>
> <lists...@listserv.aol.com> with the
>
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
>
> field of your email blank.
>
>
>
>
> --
> Mark Aufflick
>  contact info at http://mark.aufflick.com/about/contact
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <lists...@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
> field of your email blank.
>
> ---
> Janine Sisk
> President/CEO of furfly, LLC
> 503-693-6407
>
>
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <lists...@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
> field of your email blank.
>



-- 
Mark Aufflick
  contact info at http://mark.aufflick.com/about/contact


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to