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

Clarify request types in cloudfront proxy documentation #447

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/proxy/guides/cloudfront.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ With the custom origin and behaviours in place, you can change your script tag a
<script defer data-domain="yourdomain.com" src="/js/script.js"></script>
```

Deploy these changes to your CloudFront site. You can verify the proxy is working by opening your network tab. You should see a request to
`https://yourdomain.com/js/script.js` with status 200 and another one to `https://yourdomain.com/api/event` with status 202.
Deploy these changes to your CloudFront site. You can verify the proxy is working by opening your network tab. You should see a GET request to
`https://yourdomain.com/js/script.js` with status 200 and a POST request to `https://yourdomain.com/api/event` with status 202.

Using our extensions such as hash-based routing, page exclusions or outbound link click tracking? Change the file name from script.js to the script you want to use: script.hash.js, script.exclusions.js or script.outbound-links.js. Want to use more than one extension? You can chain them like this: script.hash.exclusions.outbound-links.js.

Expand Down