Performance Tuning for Visualforce Pages
Performance is an important aspect of mobile Visualforce pages. Visualforce has a
caching mechanism to help you tune the performance of your pages.
To enable caching for a page, use this statement:
<apex:page cache="true" expires="600">
The parameters for page caching are:
For more information, see Force.com Sites Best Practices on Developerforce
Attribute | Description |
---|---|
cache | Boolean value that specifies whether the browser should cache the page. If not specified, defaults to false. |
expires | Integer value that specifies the period of cache in seconds. |
More Resources
Here are some more resources to help you tune the performance of your Salesforce apps: