Skip to content

Conversation

apan06
Copy link

@apan06 apan06 commented Jul 14, 2025

About the changes

Adds sorting query parameters so it's easier to cache them on CDN.

Before

Query parameters seemed to be randomly structured:
Screenshot 2025-07-14 at 08 27 10

After

Query params are sorted. See also unit test.
Screenshot 2025-07-14 at 08 37 17

Important files

Sources/UnleashProxyClientSwift/Poller/Poller.swift

Discussion points

I understand that maybe not everyone will benefit from this small change. However with bigger traffic this can simplify and reduce costs on cache layer.

@kwasniew
Copy link
Collaborator

@apan06 In the current implementation are you getting a different order of query params for the same set of context params across multiple invocations of the client API?

@kwasniew kwasniew moved this from New to In Progress in Issues and PRs Jul 17, 2025
Copy link

stale bot commented Aug 13, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 13, 2025
@stale stale bot closed this Aug 23, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants