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 <[email protected]> wrote:
> http://docs.couchdb.org/en/latest/couchapp/ddocs.html#show-functions
>
> --
> ,,,^..^,,,
>
>
> On Thu, Jan 9, 2014 at 1:47 AM, Hank Knight <[email protected]> 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?