How to change response header (cache) in CouchDB? -


do know how change response header in couchdb? has cache-control: must-revalidate; , want change no-cache.

i not see way configure couchdb's cache header behavior in configuration documentation general (built-in) api calls. since not typical need, lack of configuration not surprise me.

likewise, last tried show , list functions (which give custom developer-provided functions control on headers) not leave cache headers under developer control either.

however, if hosting couchdb instance behind reverse proxy nginx, override headers @ level. option add usual "cache busting" hack of adding random query parameter in code accessing server. necessary in case of broken client cache implementations not typical.

but taking step back: why want make responses no-cache instead of must-revalidate? see perhaps wanting override in other direction, letting clients cache documents little while without having to revalidate. not letting clients cache @ seems little curious me, since built-in couchdb behavior using revalidated etags should not yield incorrect data unless client broken.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -