-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deploy CloudFront distributions in front of CopWatch #307
Draft
copelco
wants to merge
52
commits into
develop
Choose a base branch
from
CU-86897a79g-cache-misses
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Co-authored-by: Ronard <[email protected]>
copelco
changed the title
deploy staging CDN
Deploy CloudFront distributions in front of CopWatch
Oct 21, 2024
Testing notesLook for curl --user "forwardjustice:trafficstops" --head https://staging.nccopwatch.org/api/agency/80/stops/
HTTP/2 200
content-type: application/json
content-length: 2406
date: Mon, 21 Oct 2024 14:13:13 GMT
allow: GET, HEAD, OPTIONS
x-frame-options: DENY
content-language: en
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: same-origin
strict-transport-security: max-age=15724800; includeSubDomains
vary: Accept-Encoding
x-cache: Hit from cloudfront
via: 1.1 771410cef18c0261fb48d1f92756f9e2.cloudfront.net (CloudFront)
x-amz-cf-pop: ATL59-P1
x-amz-cf-id: tSl4WzkS7MEz4qRCtuJmX7OIqFq5pWSfwfdD0T1VMbARB13_7cCFcA==
age: 3300 An example query of the origin directly: curl --user "forwardjustice:trafficstops" --insecure --header "Host: staging.nccopwatch.org" --head https://staging-origin.nccopwatch.org/api/agency/80/stops/
HTTP/2 200
date: Mon, 21 Oct 2024 15:10:12 GMT
content-type: application/json
content-length: 2406
vary: Accept, Accept-Language
allow: GET, HEAD, OPTIONS
x-frame-options: DENY
content-language: en
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: same-origin
strict-transport-security: max-age=15724800; includeSubDomains Remove Clear cacheCreate invalidation on staging: aws cloudfront create-invalidation --distribution-id E2OFFI0H5HY2N8 --paths "/*" |
…mit Colin's notes
Slow queries with time 15 seconds
|
…-Stops into CU-86897a79g-cache-misses
…-Stops into CU-86897a79g-cache-misses
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Deploy CloudFront distribution for app server.
https://app.clickup.com/t/86897a79g
TODO
cache_response
caching
package (django-cache-machine
), imports, and referenced codeRelated PRs (need to be merged)