Skip to content

kamil-kubiczek/caching-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About project

This is a simple implementation of an HTTP proxy that supports in-memory caching, with additional support for writing cache data to a file asynchronously in the background. This helps restore cache when proxy is run again. Proxy is designed to handle only GET requests, other HTTP methods aren't cached. Feel free to fork or inspire.

Project status: 🟢Ready to use

Warning: 🟡Code has not been tested production

Features

Features provided by CLI and described here - https://roadmap.sh/projects/caching-server

Installation

Install npm dependencies

npm i 

How to run proxy in CLI

Prerequisites:

Steps to run

  1. Inside project root directory run
npm run build
  1. Then run
node dist/index.js -o <origin-url> -p <port>

Now you can start using proxy!

Help

If you need help with command options use node dist/index.js -h

About

Simple caching proxy created in Node.js - CLI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published