Set Static Site Delivery Options

If your company uses compiled sites, you can control how long static sites are cached and what mobile user-agents call for adaptive mobile layouts supported by site compilation.

Override Default Cache Control Headers for Compiled Sites

Compiled sites are cached on a user's browser for 300 seconds (5 minutes) by default. Your service administrator may change this default, but as a site developer, you can override the default for specific sites in the site properties.

  1. After logging in to Oracle Content and Experience, click Sites in the side navigation menu.
  2. Select the site you want to modify and click Properties.
  3. Click Static Site Delivery in the properties dialog.
  4. In the Caching Response Headers section, enter Cache-control: max-age= and then a numeric value for the number of seconds you want the page cached in a user's browser. For example, Cache-control: max-age=600 would cache the page for 10 minutes.
  5. When finished, click Done.

If your instance uses Akamai, to keep the existing Akamai settings, leave the Caching Response Headers section blank. To override the existing Akamai settings, enter Edge-Control: !no-store,max-age=2592000,downstream-ttl=1800 where the bold items are the default settings in seconds.

  • !no-store indicates that this setting should override the corresponding Akamai caching configuration for the property.
  • max-age determines how long Akamai should cache this page. The default is 2592000 seconds (30 days). During that time, Akamai will fulfill requests for the page without requesting the page from Oracle Content and Experience.
  • downstream-ttl tells Akamai to send a "Cache-Control: max-age" header with its response to client browsers, instructing those browsers to cache the page for the alotted time. The default is 1800 seconds (30 minutes).

Specify Mobile User-Agents to Support Compiled Adaptive Layouts

When compiling a site, mobile pages can be created to support adaptive layouts. You can specify the user-agents that will cause the server to deliver the mobile pages instead of the standard compiled pages for a site. The values entered here are treated as case-insensitive substrings when matching against the user-agent headers sent by browsers. Note that the keyword Mobile is commonly used in the user-agents strings for browsers on mobile devices.

  1. After logging in to Oracle Content and Experience, click Sites in the side navigation menu.
  2. Select the site you want to modify and click Properties.
  3. Click Static Site Delivery in the properties dialog.
  4. In the Mobile User-Agent section, enter a comma separated list of user-agent substrings for the user agents you want served mobile pages. If any part of the substring matches the browser's user-agent string, then the mobile pages are served.