Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 701E7959F for ; Wed, 5 Oct 2011 14:01:25 +0000 (UTC) Received: (qmail 20191 invoked by uid 500); 5 Oct 2011 14:01:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20138 invoked by uid 500); 5 Oct 2011 14:01:19 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20130 invoked by uid 99); 5 Oct 2011 14:01:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 14:01:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brendona@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 14:01:13 +0000 Received: by qyc1 with SMTP id 1so5397949qyc.18 for ; Wed, 05 Oct 2011 07:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=bJtjt7MUnot5GPyNxhnSDipdKoJhD4Y+Cob+cq6ceak=; b=Fx7UXLfGL4ggm8P9C7S3hkFSSgEJfRH3kA5iadIp/husHx9u3wyUhLxO1OXk6BXS/8 vMOIJRCavkP7JvtEhqh1jakZfHDGIlnAsm7s65nvbF+bgj6kSd7WbcH9HgDxjOziDZrD HD3m5LSLjisaH9D464bhHq9NVGb4cXWgaGCxQ= MIME-Version: 1.0 Received: by 10.229.176.16 with SMTP id bc16mr1979011qcb.144.1317823252290; Wed, 05 Oct 2011 07:00:52 -0700 (PDT) Received: by 10.229.251.84 with HTTP; Wed, 5 Oct 2011 07:00:52 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Oct 2011 09:00:52 -0500 Message-ID: From: Brendon Anderson To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_cache is caching content with Cache-Control: private response headers I am 100% sure. I am adding the header using Java code on Tomcat behind Apache. If I remove that particular line from the code, the Cache-Control: private header is not being sent. Java code, if it matters: response.addHeader("Cache-Control", "private"); On Wed, Oct 5, 2011 at 8:53 AM, Tom Evans wrote: > On Wed, Oct 5, 2011 at 2:16 PM, Brendon Anderson wro= te: >> I am setting the Cache-Control: private header in a response on a >> certain url, but mod_cache is still caching this url. >> >> Response Headers as indicated by Firefox (Chrome reports similar results= ): >> >> Response Headers >> Date =A0 =A0Wed, 05 Oct 2011 12:58:41 GMT >> Server =A0Apache/2.2.20 (Win32) mod_jk/1.2.32 >> Expires Wed, 05 Oct 2011 12:59:25 GMT >> Cache-Control =A0 private >> Content-Language =A0 =A0 =A0 =A0en-US >> Content-Length =A07046 >> Age =A0 =A0 15 >> Content-Type =A0 =A0text/html;charset=3DUTF-8 >> X-Cache MISS from x.y.z.com >> Via =A0 =A0 1.0 x.y.z.com:80 (squid/2.6.STABLE22) >> Proxy-Connection =A0 =A0 =A0 =A0keep-alive >> > > Are you 100% sure that the Cache-Control header is being sent with the > content, and it is not being added by the Squid cache that you are > also going through? > > Cheers > > Tom > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org