Skip to content

Commit

Permalink
release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saucecontrol committed Jan 21, 2024
1 parent bce916e commit bed336a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions build/vcpkg/ports/brotli-iis/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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")
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down Expand Up @@ -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

Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/brotli.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bed336a

Please sign in to comment.