Node.js Compression Proxy for Data saving

99封情书 提交于 2019-12-11 11:52:11

问题


I am looking for a Proxy Server in Node.js which compresses the data I receive through internet similar to Google's Data Saver extension. I want the server to compress the data of every process in my computer which uses internet. I am asking this because I want to reduce my Data usage so that I can reduce my costs for Internet. I don't know whether it is possible or not. Google's Data Saver only compresses http requests. I want the server to compress https as well.

So basically if I request a webpage, then it should pass through the server, the server requests the same webpage, compresses it and then sends me back.

Any ideas on how to do this in node.js. Any kind of suggestions are welcome. I heard about Gzip but it is specific to your own created websites. I want the server to sit in between me and the requested website and compress data. If it is possible, can I achieve high compression ratio ? Thanks


回答1:


have a look into this filternet - A simple way to filter http in node.js

  1. compression for both directions (deflate and gzip, no sdch)
  2. supports HTTP
  3. and HTTPS


来源:https://stackoverflow.com/questions/36977802/node-js-compression-proxy-for-data-saving

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!