Skip to content

Replace express-static-gzip with a gunzipping version #826

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

Closed
wants to merge 1 commit into from

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Jul 3, 2019

Describe in detail the problem you had and how this PR fixes it

express-static-gzip doesn't gunzip gzipped files for clients that don't have Accept-Encoding: gzip, so it has been replaced by a simple clone that does the same thing as the original module and also uses zlib (native module) to gunzip the .gz file when the client does not support gzip encoding.

This middleware is compatible with files that aren't .gz in the rootFolder, although it will not gzip them on the fly (to my knowledge). It should also be compatible with accessing the raw gzipped files by adding .gz to the URL.

Is there an open issue you can link to?

GH-651, possibly GH-773

express-static-gzip doesn't gunzip gzipped files for clients that don't
have 'Accept-Encoding: gzip', so it has been replaced by a simple clone
that does the same thing as the original module and also uses zlib to
gunzip the .gz file.

This middleware is compatible with files that aren't .gz in the
rootFolder, although it will not gzip them on the fly (to my knowledge).
@deansheather deansheather changed the title Replace express-static-gzip with gunzipping ver. Replace express-static-gzip with a gunzipping version Jul 3, 2019
@deansheather deansheather mentioned this pull request Jul 7, 2019
@sr229
Copy link
Contributor

sr229 commented Sep 12, 2019

CL rendered Obsolete. We don't use this layout anymore so I'm closing this off.

@sr229 sr229 closed this Sep 12, 2019
@sr229 sr229 deleted the fix-gzip branch September 12, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants