Skip to content
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

Add lookupMap option #71

merged 3 commits into from Dec 27, 2016

Add lookupMap option #71

merged 3 commits into from Dec 27, 2016


Copy link

kanongil commented Aug 23, 2016

This adds a new directory and file option named lookupMap which allows the supported content-encodings and file extension for lookupCompressed to be customized.

The primary reason for this, is to enable non-gzip lookups once hapi@15 lands with custom encoding support. Eg. it would be possible to lookup brotli pre-compressed files with this config:

    lookupCompressed: true,
    lookupMap: { gzip: '.gz', br: '.br' }

Note that the compressed file will not be served, unless the server already understands how to compress the br encoding, via or similar.

@kanongil kanongil added the feature label Aug 23, 2016
@kanongil kanongil force-pushed the kanongil:lookupmap-option branch from 2181b4e to 85967de Dec 27, 2016
@kanongil kanongil force-pushed the kanongil:lookupmap-option branch from 85967de to 11fb666 Dec 27, 2016
@kanongil kanongil merged commit a164a8f into hapijs:master Dec 27, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@kanongil kanongil self-assigned this Dec 27, 2016
@kanongil kanongil added this to the 4.1.0 milestone Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.