{"library":"request-etag","type":"library","category":null,"description":"request-etag is a small, in-memory module designed for ETag-based HTTP response caching. It manages the `If-None-Match` header automatically for subsequent GET requests to the same URL, retrieving cached bodies for 304 Not Modified responses. The package currently leverages `lru-cache` for its underlying caching mechanism, which can be configured with options like `max` size. Crucially, `request-etag` defaults to using the `request` library as its HTTP client, which has been officially deprecated and is no longer maintained since February 11th, 2020. While an alternative HTTP client can be injected, it *must* adhere to the `request` library's API signature. The package's current stable version is 2.0.3, but its reliance on a deprecated core dependency suggests a slow or inactive release cadence, limiting its suitability for new projects. Its primary differentiator is its focused, lightweight approach to abstracting ETag caching logic.","language":"javascript","status":"deprecated","version":"2.0.3","tags":["javascript","request","etag","request-etag","etag-request","http","http-etag","etag-http"],"install":[{"cmd":"npm install request-etag","imports":["const ETagRequest = require('request-etag');","const eTagRequest = new ETagRequest(cacheConfig, modernHttpClient);","eTagRequest(url, function (error, response, body) { /* ... */ });"]},{"cmd":"yarn add request-etag","imports":[]},{"cmd":"pnpm add request-etag","imports":[]}],"homepage":null,"github":"https://github.com/Belema/request-etag","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/request-etag","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/request-etag/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}