couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank Knight <hknight...@gmail.com>
Subject Re: CouchDB: Content Type Header for Show Function
Date Wed, 08 Jan 2014 22:10:48 GMT
Thanks.

'headers': {'Content-Type' : 'application/javascript','Etag' :
'','Expires' : '0', 'Pragma': 'no-cache'}

This adds the Content-Type header and the Expires header and the
Pragma header however it does not change or remove the Etag header.

I am using this to get the current timestamp from the server and I
don't want it to be cached by Squid.  Is there any way to remove the
Etag header?


On Wed, Jan 8, 2014 at 5:52 PM, Alexander Shorin <kxepal@gmail.com> wrote:
> http://docs.couchdb.org/en/latest/couchapp/ddocs.html#show-functions
>
> --
> ,,,^..^,,,
>
>
> On Thu, Jan 9, 2014 at 1:47 AM, Hank Knight <hknight555@gmail.com> wrote:
>> Here is my show function:
>> https://zuhqtr5.couchappy.com/test/show/show.txt
>>
>> Here is what it does:
>> https://zuhqtr5.couchappy.com/test/_design/showtimestamp/_show/serverTime
>>
>> How can I add a custom content header to this show function so
>> Content-Type: application/javascript
>> is sent with the headers?

Mime
View raw message