From bed336a342a1e298ab8d4b3af3be8eb6948ca216 Mon Sep 17 00:00:00 2001 From: Clinton Ingram Date: Sun, 21 Jan 2024 12:28:55 -0800 Subject: [PATCH] release v1.1.0 --- build/vcpkg/ports/brotli-iis/portfile.cmake | 3 +-- readme.md | 6 +++--- src/CMakeLists.txt | 1 + src/brotli.rc.in | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/vcpkg/ports/brotli-iis/portfile.cmake b/build/vcpkg/ports/brotli-iis/portfile.cmake index 31fd3f1..c9aed9e 100644 --- a/build/vcpkg/ports/brotli-iis/portfile.cmake +++ b/build/vcpkg/ports/brotli-iis/portfile.cmake @@ -1,4 +1,5 @@ set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled) +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) set(REPO_ROOT "${CURRENT_PORT_DIR}/../../../..") set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src) @@ -9,6 +10,4 @@ file(COPY ${BROTLI_SOURCES} DESTINATION ${SOURCE_PATH}) vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}) vcpkg_cmake_install() vcpkg_copy_pdbs() - -write_file(${CURRENT_PACKAGES_DIR}/include/${PORT}.h "//dummy header") vcpkg_install_copyright(FILE_LIST "${REPO_ROOT}/license") diff --git a/readme.md b/readme.md index 07bf98d..a62d493 100644 --- a/readme.md +++ b/readme.md @@ -27,7 +27,7 @@ Features -------- * Integrates with the built-in IIS Static and Dynamic Compression Modules. -* Uses the latest version of Google's Brotli encoder (v1.0.9). +* Uses the latest version of Google's Brotli encoder (v1.1.0). Requirements ------------ @@ -82,7 +82,7 @@ There are however, some gotchas related to the way the browser support is implem Current browsers will only request and accept Brotli encoding over HTTPS. Due to some poorly-behaved intermediate software/devices (proxies, caches, etc) in the wild, the Chrome dev team [decided](https://bugs.chromium.org/p/chromium/issues/detail?id=452335#c87) to only advertise Brotli support over HTTPS so that these poorly-behaved intermediaries couldn't mangle Brotli-encoded responses. Other vendors followed suit. -If you aren't using HTTPS, you can't use Brotli. Thankfully, with [Let's Encrypt](https://github.com/Lone-Coder/letsencrypt-win-simple), HTTPS is now free and easy to set up. Just do it. +If you aren't using HTTPS, you can't use Brotli. Thankfully, with [Let's Encrypt](https://github.com/win-acme/win-acme), HTTPS is now free and easy to set up. Just do it. ### Brotli is Low-Priority on Older IIS Versions @@ -94,7 +94,7 @@ This issue has been resolved in IIS 10 version 1803 and newer. On IIS 10, the p On older versions of IIS, you have two options: -1) Disable `gzip` and `deflate` on your server so that `br` is the only possible match. As of early 2021, Brotli is supported by over 95% of browsers worldwide, and that number continues to climb. Older clients would continue to work with uncompressed responses. +1) Disable `gzip` and `deflate` on your server so that `br` is the only possible match. As of early 2024, Brotli is supported by nearly 99% of browsers worldwide, and that number continues to climb. Older clients would continue to work with uncompressed responses. 2) Take some action to force IIS to choose `br` when acceptable. To accomplish this, you can modify the `Accept-Encoding` header value on requests as they enter your IIS pipeline. The [IIS URL Rewrite Module](https://www.iis.net/downloads/microsoft/url-rewrite) makes this easy. The `Accept-Encoding` header is represented by the `HTTP_ACCEPT_ENCODING` Server Variable in the IIS pipeline, and you can modify it before it reaches the Compression Module(s). Here is a sample configuration: diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e5be6cb..15b0143 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,6 +4,7 @@ set(BROTLI_VERSION_MAJOR 1) set(BROTLI_VERSION_MINOR 1) set(BROTLI_VERSION_PATCH 0) set(BROTLI_VERSION_REVIS 0) +set(BROTLI_VERSION_PARCH " (${VCPKG_TARGET_ARCHITECTURE})") set(BROTLI_LINK_LIBS brotlienc brotlicommon) string(TIMESTAMP DATE_YEAR "%Y") diff --git a/src/brotli.rc.in b/src/brotli.rc.in index 9a0c465..6b9bba8 100644 --- a/src/brotli.rc.in +++ b/src/brotli.rc.in @@ -23,7 +23,7 @@ BEGIN VALUE "ProductVersion", "${BROTLI_VERSION_MAJOR}.${BROTLI_VERSION_MINOR}.${BROTLI_VERSION_PATCH}" VALUE "OriginalFilename", "brotli.dll" VALUE "LegalCopyright", "Copyright © 2018-${DATE_YEAR} Clinton Ingram" - VALUE "FileDescription", "Brotli Compression DLL" + VALUE "FileDescription", "Brotli Compression DLL${BROTLI_VERSION_PARCH}" VALUE "ProductName", "Brotli IIS Compression Scheme Plugin" END END