couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: How to set cache-control headers for views, lists and shows?
Date Fri, 13 Apr 2012 17:15:44 GMT
Did you notice you can return custom headers in shows and lists?

https://wiki.apache.org/couchdb/Formatting_with_Show_and_List
https://wiki.apache.org/couchdb/ExternalProcesses#JSON_Response

B.

On 13 April 2012 18:07, Hendrik Jan van Meerveld <haaiee@gmail.com> wrote:
> Hello Couchdb people,
>
> I'm creating a web-page using Couchdb.
> To speed up the loading times for the web-page, I'd like to add some
> cache-control headers like:
>
> Cache-Control: max-age=3600, must-revalidate
> ExpiresDefault "access plus 10 years"
> CacheQueries PUBLIC http://www.mysite.com/*
>
> Any help would be great, as I could not find any information on this using
> google.
>
> Kind regards,
> Hendrik Jan van Meerveld

Mime
View raw message