After digging several hours we decided to come up with a question on SO, hoping that someone else could help regarding the following problem.
- For one of our web applications, we used the Onsen UI js framework with its React support library
- When we try to render the application on our dev environments everything seems to work properly, but when we try it on our staging environment some components behave differently
What we found so far: it seems that on our staging environment, some HTML attributes are set differently into the DOM:
|----------------|---------------|--------------| | HTML attribute | DEV ENV | STAGING ENV | |----------------|---------------|--------------| | fixed-content | fixed-content | fixedcontent | |----------------|---------------|--------------| | active-index | active-index | index | |----------------|---------------|--------------|
Because of this, the Onsen framework cannot find the attributes on the HTML Elements and behaves differently regardless that:
- We use the same browser (checked with Chrome, Edge, Firefox)
- We have the same JS code loaded on both envs
What differences are between envs:
- The JS files are stored locally on our dev machines and on S3 for our staging env.
- We use an encrypted connection on our staging env
- The Accept-Encoding header is
gzip, deflate
on local andgzip, deflate, br
on staging - Maybe something else to look for?
Does anybody know what the hell is happening here?