Tutorial: Configuring edge side caching using ESI >
< Previous | Next >
Caching full pages using ESI caching
To cache an entry using ESI, use the property EdgeCacheable. Be aware that this property implies the property of consume-subfragments.
To cache pages with ESI, define the Cache ID using parameter and cookie type components. You cannot use request attributes in the cache-id's definition because they are not available at the network's edge.
- Cache the TopCategoriesDisplay page at the edge of the network.
- Open the cachespec.xml file located at WC_eardir\Stores.war\WEB-INF.
- Ensure that there are no components in the cache-id for TopCategoriesDisplay that reference request attributes.
- Add the following property to the <cache-entry> for the TopCategoriesDisplay page
<property name="EdgeCacheable">true</property>- As noted above, the page fragment must also be edge cacheable. Add the EdgeCacheable property to the cache-entry for the eMarketingSpot.
- Verify that the page gets cached at the edge.
- Open the cache monitor and clear the cache entries.
- Hit the TopCategoriesDisplay page.
- Open the cache monitor.
- Click Edge Statistics on the left hand side.
- Click the Contents button. You see an entry in the cache for the TopCategoriesDisplay page.