Skip to content

Disable b64 for SDJ data on POST requests from browsers by default - #1352

Merged
Jethro Nederhof (jethron) merged 1 commit into
snowplow:release/4.0.0from
jethron:b64-disable-post
Oct 9, 2024
Merged

Disable b64 for SDJ data on POST requests from browsers by default#1352
Jethro Nederhof (jethron) merged 1 commit into
snowplow:release/4.0.0from
jethron:b64-disable-post

Conversation

@jethron

Copy link
Copy Markdown
Contributor

In POST requests this usually results in a smaller payload size, and is easier to debug. The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there, because it is considerably less efficient when used for GET requests.

@bundlemon

bundlemon Bot commented Oct 4, 2024

Copy link
Copy Markdown

BundleMon

Files added (6)
Status Path Size Limits
trackers/javascript-tracker/dist/sp.js
+24.28KB 30KB / +10%
libraries/browser-tracker-core/dist/index.mod
ule.js
+23.45KB 25KB / +10%
libraries/tracker-core/dist/index.module.js
+19.12KB 20KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+17.27KB 20KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+17.21KB 20KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.49KB 5KB / +10%

Total files change +104.8KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! 🥳

Should we update the API docs in the TrackerConfiguration type to state the default is false for POST requests?

In POST requests this usually results in a smaller payload size, and is easier to debug. The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there.
@jethron
Jethro Nederhof (jethron) merged commit 969f009 into snowplow:release/4.0.0 Oct 9, 2024
@jethron
Jethro Nederhof (jethron) deleted the b64-disable-post branch October 9, 2024 00:39
Matus Tomlein (matus-tomlein) pushed a commit that referenced this pull request Oct 25, 2024
…1352)

In POST requests this usually results in a smaller payload size, and is easier to debug.
The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there.
Matus Tomlein (matus-tomlein) pushed a commit that referenced this pull request Oct 28, 2024
…1352)

In POST requests this usually results in a smaller payload size, and is easier to debug.
The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there.
Matus Tomlein (matus-tomlein) pushed a commit that referenced this pull request Oct 28, 2024
…1352)

In POST requests this usually results in a smaller payload size, and is easier to debug.
The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants