-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add server capability to check for Brotli compressed static files #8063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
63c1d61
Add server capability to check for Brotli compressed static files
steverep 50fd1bb
Remove use of StrEnum for compat < 3.11
steverep 9a6ddb0
Remove Literal key type for extensions dict
steverep 26815a0
Use typing.Dict for 3.8 compatibility
steverep b0d58f7
Test with default accept-encoding header
steverep ecc4ae1
Defer fix for lower() to separate change
steverep 0397a41
Temporarily remove CI fail-fast
steverep 652a848
Revert "Temporarily remove CI fail-fast"
steverep 517c9d7
Assert headers first and remove gzip from test name
steverep 634bf94
Assert response headers and body as tuple for easier debugging
steverep 54979c5
Add Brotli to mimetypes for < 3.9 and use same map as library
steverep d5fd592
Revert "Test with default accept-encoding header"
steverep e7de51d
Merge master
steverep 80caa3c
Apply review suggestions and other renames
steverep 361f531
Fix mock tests to use with_suffix
steverep bf37160
More formatting from review
steverep c8f2b28
Revert tuples and assert in proper order
steverep e6ce7d5
Merge branch 'master' into serve-brotli-files
bdraco b636172
Make extensions map immutable
steverep 48bc773
Parametrize 4th test using hello.txt
steverep b451966
Merge master for hello_txt fixture and create Brotli version accordingly
steverep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| tests/data.unknown_mime_type binary | ||
| tests/hello.txt.gz binary | ||
| tests/hello.txt.* binary | ||
| tests/sample.* binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Added server capability to check for static files with Brotli compression via a ``.br`` extension -- by :user:`steverep`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steverep marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
steverep marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.