From user-return-3548-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Feb 13 12:10:37 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18884 invoked from network); 13 Feb 2009 12:10:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2009 12:10:37 -0000 Received: (qmail 93125 invoked by uid 500); 13 Feb 2009 12:10:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93092 invoked by uid 500); 13 Feb 2009 12:10:34 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 93081 invoked by uid 500); 13 Feb 2009 12:10:34 -0000 Delivered-To: apmail-incubator-couchdb-user@incubator.apache.org Received: (qmail 93078 invoked by uid 99); 13 Feb 2009 12:10:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 04:10:34 -0800 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-couchdb-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 12:10:26 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LXwrq-00041O-Gc for couchdb-user@incubator.apache.org; Fri, 13 Feb 2009 12:10:02 +0000 Received: from 82.152.15.113 ([82.152.15.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Feb 2009 12:10:02 +0000 Received: from vinay_sajip by 82.152.15.113 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Feb 2009 12:10:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: couchdb-user@incubator.apache.org From: Vinay Sajip Subject: How to configure HTTP caching headers? Date: Fri, 13 Feb 2009 12:00:02 +0000 (UTC) Lines: 21 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 82.152.15.113 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Just taking my first steps with CouchDB. I notice that the HTTP caching headers currently put out cause IE (for example) to not display information correctly in Futon. It's easy to reproduce: I open windows in Firefox and IE simultaneously, do an update using Firefox (e.g. add a new document) and refresh the IE window. The updated document count is not shown. If I clear the browser cache and try again, the updated information is displayed. The HTTP header put out is Cache-Control: must-revalidate which seems to me insufficient - for IE, at least. Is there way of configuring these headers, to for example Cache-Control: no-cache Pragma: no-cache Expires: some date in the past, or the same value as the Date: header