issues/102: Support compression of API response #173
Merged
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.
Github Issue: #102
Description
Enable compression for API Responses
Overview of work done
Modified the Hydrcron API Gateway Terraform and set
minimum_compression_size
to 20480 as a starting point.Overview of verification done
Small modification to Terraform, no new units tests required. Existing unit tests pass.
Overview of integration done
Deployed modifications to SIT environment and ran the following queries.
Accept-Encoding=gzip
Confirmed existence of
Content-Encoding
request header set togzip
.No Accept-Encoding header
Confirmed that
Content-Encoding
request header was not present.PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request