{"library":"vary","type":"library","category":null,"description":"`vary` is a focused Node.js utility library designed for manipulating the HTTP `Vary` response header. It provides a simple API to append fields to the `Vary` header of a Node.js `http.ServerResponse` object or directly to an existing `Vary` header string. Currently at version 1.1.2, the package maintains a stable and slow release cadence, primarily focusing on performance improvements and input validation rather than frequent feature additions. Its key differentiator is its singular purpose, offering a reliable and minimal solution for ensuring correct cache behavior when content varies based on request headers, without introducing additional HTTP framework overhead. It is a foundational utility used by many HTTP servers and middleware in the Node.js ecosystem.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","http","res","vary"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vary","imports":["const vary = require('vary')","const vary = require('vary'); vary.append(header, field)"]},{"cmd":"yarn add vary","imports":[]},{"cmd":"pnpm add vary","imports":[]}],"homepage":null,"github":"https://github.com/jshttp/vary","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vary","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vary/compatibility"}}