Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 88BD6B80C for ; Fri, 20 Jan 2012 13:09:10 +0000 (UTC) Received: (qmail 22893 invoked by uid 500); 20 Jan 2012 13:09:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22813 invoked by uid 500); 20 Jan 2012 13:09:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 22804 invoked by uid 99); 20 Jan 2012 13:09:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 13:09:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 13:08:59 +0000 Received: by yenl8 with SMTP id l8so250216yen.18 for ; Fri, 20 Jan 2012 05:08:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.77.101 with SMTP id c65mr46167157yhe.13.1327064918616; Fri, 20 Jan 2012 05:08:38 -0800 (PST) Received: by 10.100.191.11 with HTTP; Fri, 20 Jan 2012 05:08:38 -0800 (PST) In-Reply-To: References: Date: Fri, 20 Jan 2012 14:08:38 +0100 Message-ID: Subject: Re: Caching of protected static content with Expires header: Expires Thu, 01 Jan 1970 03:00:00 EET? From: Francis GALIEGUE To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jan 20, 2012 at 14:03, Violeta Georgieva wro= te: > Hi, > > If the static content is not protected then by default it is cached and t= he > corresponding headers are set - see screenshot1 & screenshot2. > but when I put it as protected content the following headers are set: > Cache-control:private and Expires header: Expires Thu, 01 Jan 1970 03:00:= 00 > EET - see screenshot3 & screenshot4 > My question is why the expires header is set with this value? Doesn't thi= s > prevent caching? > > I'm running Tomcat 7.0.23 > I take it you are using Tomcat's caching directives, so... Show us the relevant portions of the configuration file. --=20 Francis Galiegue ONE2TEAM Ing=C3=A9nieur syst=C3=A8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 fge@one2team.com 40 avenue Raymond Poincar=C3=A9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org