function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel SadavoyDaniel Sadavoy 

Embedded visualforce page showing outdated values on Salesforce1

Wrong data is being shown and it's making people sad :(


We have a VF page that we embedded in the Account page layout. 
The VF page just has a few <div>'s with a few fields from the account. They are shown using apex:outputText tags.

What people are finding is that when looking at different account pages, sometimes the VF will show values from a previously viewed account! Like the VF page has cached the values, and is not refreshing.

A few things:
This only happens on Salesforce1, desktop is fine.
We have tried turning off cacheing in both the header and the app, but no avail. 
We tried putting a refresh call in the VF page, but no good. 

Anyone else experienced this issue? 
Many thanks,
Daniel
 
SonamSonam (Salesforce Developers) 
hey Daniel, is this happening across devices  and on the desktop app for salesforce1? if you haven't yet tried, can you please check the salesforce1 app on desktop by going to https://<instance>.salesforce.com/one/one.app while you are logged into salesforce on any other tab.

let me know the result..
Daniel SadavoyDaniel Sadavoy
Hi Sonam,
The error does not occur on desktop, not even on one/one.app. Just mobile devices. It is indeed across devices. 
Ajay_SFAjay_SF
Hey Guys!

Could you figure out the issues? I'm facing the similar issue. If the user logs in from different computer, he sees the corrupt data on a visualforce page.

Any help would be much appreciated!

-AJ