Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2EDE9D85 for ; Sat, 14 Apr 2012 06:53:14 +0000 (UTC) Received: (qmail 46363 invoked by uid 500); 14 Apr 2012 06:53:12 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 46151 invoked by uid 500); 14 Apr 2012 06:53:08 -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 46107 invoked by uid 99); 14 Apr 2012 06:53:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 06:53:06 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of haaiee@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 06:53:00 +0000 Received: by obbwc20 with SMTP id wc20so2692057obb.11 for ; Fri, 13 Apr 2012 23:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ITHCvQer7YSJUnj0YNGRX3zfSu6DVQ85fsFGSSNEuOA=; b=jiQ+svX+Q+fq/xqoaY4UfFB0XfRUGs7oMU4KpAoS9fNBjbYWu6ncsc63jb/xrJvIP4 kXocENYWdZIxHgP3pNow45bvOA0FiBsqZ/NBxRec3T/muijGZb12PT2BRzgSBIvO283D bspNUiVnkNqQdhthOeXOfkJ5CHMilt6OSNcNBt6X7BbnZEZLoE+OcQRLUEp/fznvO3Ep BusKVxbR0+CWdle+XEBUXOCXhBk0Vp8Eh/ir37N2muYNH0qk1ukN88uy785gfYy60P0O 6SEBjkGfRjtXghB+w5lPa2vBfFcUCQuBmFL09SNIlRjfoRtq6X+KJD1/1ubsgSSVQV8L Kv5Q== Received: by 10.60.7.196 with SMTP id l4mr5795954oea.8.1334386359060; Fri, 13 Apr 2012 23:52:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.43.105 with HTTP; Fri, 13 Apr 2012 23:52:08 -0700 (PDT) From: Hendrik Jan van Meerveld Date: Sat, 14 Apr 2012 08:52:08 +0200 Message-ID: Subject: How to set cache-control headers for attachments To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e89a8f643910ecc74204bd9e085c --e89a8f643910ecc74204bd9e085c Content-Type: text/plain; charset=ISO-8859-1 Hi Couchdb people, Can I set headers for attachments? I'd like to add headers like Cache-Control: max-age=3600, must-revalidate ExpiresDefault "access plus 10 years" CacheQueries PUBLIC http://www.mysite.com/* to image attachments in my couchapp website. Because the site is mainly for mobiles, it is very important for me to reduce the amount of data and number of HTTP requests. Couchdb user Rober Newson gave me useful information on how to set headers for lists and shows https://wiki.apache.org/couchdb/Formatting_with_Show_and_List https://wiki.apache.org/couchdb/ExternalProcesses#JSON_Response but I cannot find any information on attachments (or probably I don't understand the information that I read). Kind regards, Hendrik Jan --e89a8f643910ecc74204bd9e085c--