Express.js · Method
res.vary
res.vary(field) adds a field to the HTTP Vary response header when it is not already present. It returns the response object.
Last updated
Syntax
res.vary(field)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
res.render()Vary response headerResponse