{"id":18336607,"url":"https://github.com/iassasin/reqcache","last_synced_at":"2025-06-21T04:07:40.141Z","repository":{"id":86400202,"uuid":"209619541","full_name":"iassasin/reqcache","owner":"iassasin","description":"Cache requests to upstream server forever","archived":false,"fork":false,"pushed_at":"2019-10-01T09:45:45.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T19:56:02.493Z","etag":null,"topics":["http-cache","performance-testing","proxy","proxy-cache"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iassasin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-19T18:11:29.000Z","updated_at":"2020-04-27T08:30:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"e44d4fee-56fa-47f9-8c90-551b9570a192","html_url":"https://github.com/iassasin/reqcache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iassasin/reqcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Freqcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Freqcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Freqcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Freqcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iassasin","download_url":"https://codeload.github.com/iassasin/reqcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iassasin%2Freqcache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261060152,"owners_count":23103985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-cache","performance-testing","proxy","proxy-cache"],"created_at":"2024-11-05T20:08:22.467Z","updated_at":"2025-06-21T04:07:35.125Z","avatar_url":"https://github.com/iassasin.png","language":"JavaScript","readme":"# reqcache\n\nSimple utility to proxy and cache all requests to upstream server.\nUseful when you need to benchmark microservice by self and exclude other services affects\n\n# Prepare to use\n\nJust clone the repository and install dependecies:\n\n```\nnpm install\n```\n\n# Usage\n\n```\nnode reqcache port baseUrl [debug]\n```\n\nParameters:\n\n- `port` - port to listen on\n- `baseUrl` - base url to proxy requests\n- `debug` - optional flag for printing debug info\n\n# Example\n\nFor example, run cached proxy for `http://example.com`, that uses resource `/styles.css`:\n\n```\nnode reqcache 3030 http://example.com debug\n```\nOpen in browser `http://localhost:3030` and you will see in console something like:\n```\nProxying to https://example.com at 0.0.0.0:3030\nnew request: GET /\nresponse: /: 200\nget from cache: GET /\nnew request: GET /styles.css\nresponse: /styles.css 200\nget from cache: GET /styles.css\n```\n\nThen reload page in browser:\n```\nget from cache: GET /\nget from cache: GET /styles.css\n```\nReqcache memorized first response and just return it again with no requests to upstream server.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiassasin%2Freqcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiassasin%2Freqcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiassasin%2Freqcache/lists"}