用于数据保存的Node.js压缩代理 [英] Node.js Compression Proxy for Data saving

查看:82
本文介绍了用于数据保存的Node.js压缩代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Node.js中寻找代理服务器,该服务器压缩通过互联网接收到的数据,类似于Google的Data Saver扩展程序。我希望服务器压缩使用Internet的计算机中每个进程的数据。我之所以这样询问,是因为我想减少数据使用量,从而减少互联网费用。不知道有没有可能Google的数据保护程序仅压缩http请求。我也希望服务器也压缩https。

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.

关于如何在node.js中执行此操作的任何想法。欢迎任何建议。我听说过Gzip,但它特定于您自己创建的网站。我希望服务器位于我和请求的网站之间并压缩数据。如果可以,我是否可以实现较高的压缩率?谢谢

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

推荐答案

看看这个 filternet-一种在node.js中过滤http的简单方法


  1. 两个方向的压缩(压缩和压缩) gzip,无sdch)

  2. 支持HTTP

  3. 和HTTPS

这篇关于用于数据保存的Node.js压缩代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆