Configure CDN Caching
To configure CDN caching, you must have enabled it first. For more information, see Enable CDN Caching.
To configure CDN caching:
-
Modify the SSP application.
-
Add the setCDNCacheable call to your SSP application and service files. For more information about using the setCDNCacheable method, see SuiteScript 1.0 Documentation.
<% response.setCDNCacheable(response.CACHE_DURATION_MEDIUM) %>
Important:The Shopping Application has the setCDNCacheable call in the index.ssp file by default. After your domains are set up as described above, CDN caching is enabled for the Shopping Application. If you customize the Shopping Application with external SSP applications, you can also set caching for content returned from those custom services.
After you enable and configure CDN caching, you can clear the cache by sending a cache invalidation request. For more information, see Cache Invalidation.