+ Start a Discussion

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 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:
                    <object data=http://cnsctest-developer-edition.ap1.force.com/mysitesample width="850" height="500">Error.</object>

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
You page most likely get cached by your browser.

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