rhythmic-agency-4145
04/17/2024, 6:39 PMGBFeaturesRepository featuresRepository = GBFeaturesRepository
.builder()
.apiHost("<https://cdn.growthbook.io>")
.clientKey("<environment_key>")
.refreshStrategy(FeatureRefreshStrategy.SERVER_SENT_EVENTS)
.build();
We are unable to refresh our features with SERVER_SENT_EVENTS because of this error, but I’m not sure where to enable the sse-support header. Digging through the Ask AI bot on the docs, it seems like we have to set up a proxy in order for this to work. Is that accurate? If not, how do I fix this. Thanks!!
------
Falling back to stale-while-revalidate refresh strategy. 'X-Sse-Support: enabled' not present on resource returned at <https://growthbook-api.engine.tech/api/features/{{REDACTED}}>
rhythmic-agency-4145
04/17/2024, 6:39 PMrhythmic-agency-4145
04/17/2024, 6:47 PMfresh-football-47124
adorable-cpu-56223
04/18/2024, 1:58 PMSTALE_WHILE_REVALIDATE
should be working? When we use SERVER_SENT_EVENTS
while on Growthbook’s hosted SDK (as opposed to our hosted SDK), I can see the features refreshed almost real time when I make any changes to a feature/experiment. However, when I set STALE_WHILE_REVALIDATE
I never see any indication that features have been updated.