Skip to content

0.0.7 - Fix 204 Support

Choose a tag to compare

@dan-loomb dan-loomb released this 29 May 20:28
· 8 commits to main since this release
d15daa5

"204" refers to the status code that is returned from a /initialize call when there is not change from the Statsig server.
When this status code is returned, the SDK considers its cache values up-to-date and does not need new values from a remote server.

A bug was found where 204 was being returned in cases where the StatsigUser object changed and was no longer valid for its cached evaluations.

Remediations:

  • 204 was turned off for all previous versions
  • 204 will now only work in this version and above
  • A check was added to only request 204 when the user object is 100% identical to that which made the original cache entry