Skip to content

jacekkolasa/proxy-with-file-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-with-file-storage

Very simple proxy for caching purposes

usage

npm install
npm run start

Afterwards change the url's for you app from:

https://google.com

to:

http://localhost:3010/google.com

The method and the body will be forwarded, and the result stored in /data folder, so it is automatically reused the next time.

The script distinct different calls using url, method and stringified body, so calls to the same api with different params will be treated as different.

Supports json and images. All calls having word 'image' in url are treaded as such.

About

Very simple proxy for caching purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published