我们可以用gzip压缩url参数吗?

时间:2020-05-04 08:04:32

标签: javascript json http-compression

我需要像这样将JSON对象作为url参数传递: 例如:example.com/index.html&uielements= {“书签”:[“禁用”],“收藏夹”:[“隐藏”]}

我可以使用gzip压缩来压缩url参数'uielements'吗?

我知道我们可以使用https://github.com/Sage/jsurl/之类的第三方库来实现 http://pieroxy.net/blog/pages/lz-string/index.html,但要求不要使用任何其他库。

任何线索都将非常有用。

谢谢。

0 个答案:

没有答案