Estimate compression level

A Chrome browser extension that estimates the HTTP compression level of the page.

什麼是Estimate compression level?

Estimate compression level是由Leon Brocard開發的Chrome擴展程式,該擴展的主要功能是“A Chrome browser extension that estimates the HTTP compression level of the page.”。

擴展截圖

screenshot

下載Estimate compression level擴展crx文件

下載Estimate compression level擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        Background

Compression is a core feature of HTTP that improves transfer speed, cache bandwidth utilization and cache utilization.

Lossless data compression algorithms development led to the LZW algorithm (1984), used by the compress application (1985), and then the PKZIP application (1991) with its DEFLATE algorithm which was then used in the gzip format (1992). The zlib library (1995) became a de facto standard compression library for gzip data.

HTTP/1.1 in 1999 (RFC 2616) added support for gzip, compress and deflate compression as content encodings. gzip compression quickly became the default as it compressed better than compress, which used the patented LZW algorithm, and as Microsoft incorrectly implemented deflate as a broken raw deflate stream instead of the correct deflate stream inside a zlib format wrapper.

Compression algorithms generally define a file format and how to decompress it. This allows the user to pick an appropriate compression level: either fast compression, which compresses quickly, but doesn't compress very small or instead best compression, which compresses slowly but generates a smaller output.

With gzip and zlib these levels range from 1 (fast) to 9 (best), with a default of 6.

When you browse to a page with this extension and the content is compressed with gzip, a little badge is shown with the estimated compression level.

If the compression was achieved with a gzip compressor other than zlib, a fractional estimate of zlib compression level is shown.

How does it work?

The chrome extension notes the Content-Length of the page as it is loaded, then fetches the page again, tries to compress it with a variety of levels and then displays the result.

This uses more network and CPU. Use sparingly.

TODO

Some websites use the newer Brotli compression algorithm instead of gzip. This extension does not support Brotli yet.                    

擴展基本資訊

名稱 Estimate compression level Estimate compression level
ID lgogndmdpoegjafbbedeedmeofohbopo
官方網址 https://chromewebstore.google.com/detail/estimate-compression-leve/lgogndmdpoegjafbbedeedmeofohbopo
簡介 A Chrome browser extension that estimates the HTTP compression level of the page.
檔案大小 520 KB
安裝次數 98
目前版本 0.0.1
更新時間 2022-03-17
上架時間 2022-03-17
評分 1.00/5 共 1 次評分
開發者 Leon Brocard
電子郵箱 [email protected]
付費類型 free
擴展官網 https://github.com/fastly/chrome-extension-estimate-compression-level
說明頁面URL https://github.com/fastly/chrome-extension-estimate-compression-level
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 3,
    "name": "Estimate compression level",
    "version": "0.0.1",
    "action": {
        "default_icon": {
            "128": "images\/128.png"
        }
    },
    "description": "A Chrome browser extension that estimates the HTTP compression level of the page.",
    "icons": {
        "128": "images\/128.png"
    },
    "background": {
        "service_worker": "background.js",
        "type": "module"
    },
    "host_permissions": [
        "http:\/\/*\/*",
        "https:\/\/*\/*"
    ],
    "permissions": [
        "webRequest",
        "webNavigation"
    ]
}