Use the glide.http.cache_control property to set the default cache-control value in the HTTP response headers that the Now Platform sends when requesting static content data for a page. Examples of static content include images, CSS, and JavaScript rendered from within, for a page.

The glide.http.cache_control property sets the default Cache-Control value in HTTP response headers to private or public. The default is public.
Value Description
private Static content can be cached at the browser (client) level, but not at the proxy server level.
public Static content can be cached at the browser (client) level, and also at the proxy server level.

The Expires value in the HTTP response headers control when the static content expires, and has a default value of 369 days. To manually override the default value, use the glide.http.expire.days property.

Control-Cache and Expires HTTP response header values

Note: You can use the glide.http.cache property designate whether to enable or disable setting of the Cache-Control and Expires values in HTTP response headers. Its default is true, which allows you to set the:
  • Cache-Control value default using the glide.http.cache_control property.
  • Expires value default using the glide.http.expire.days property.

More information

To learn more about adding or creating a system property, see Add a system property.