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
sp13sp13 

visualforce page in website

i have a problem in updating the records that shows on the table in my visualforce page. when i create a new record for Account it doesn't display immediately in the visualforce page's table.

this is my visualforcepage:
<apex:page standardController="Account" extensions="AccountCX" sidebar="false">
    <apex:pageblock >
        <apex:pageBlockTable value="{!Accounts}" var="acc">
            <apex:column value="{!acc.Name}"/>
        </apex:pageBlockTable>
    </apex:pageblock>
</apex:page>
 
apex class:
public with sharing class AccountCX{
    public AccountCX(ApexPages.StandardController controller) { }
    public List<Account> getAccounts() {
            return[select id, Name from Account ORDER BY Name];
    }
}
 
and this is the code for my website:
<html>
          <body>
                    <object data=http://cnsctest-developer-edition.ap1.force.com/mysitesample width="850" height="500">Error.</object>
          </body>
</html>

my salesforce site domain: http://cnsctest-developer-edition.ap1.force.com/mysitesample

how can i update the visualforce page in the website immediately after creating new records?
Best Answer chosen by sp13
Elie.RodrigueElie.Rodrigue
You page most likely get cached by your browser.
http://help.salesforce.com/HTViewHelpDoc?id=sites_caching.htm&language=en_US

Use the cache="false" attribute in the page tag
<apex:page standardController="Account" extensions="AccountCX" sidebar="false" cache="false">