Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

https.CacheDuration

https.CacheDuration.{|LONG|}

N/https Module
https.CacheDuration
Enum Description: Holds the string values for supported cache durations. This enum is used to set the value of the ServerResponse.setCdnCacheable(options) property.
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/https Module
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=https.CacheDuration

Example:

// Code Example 1
// Add additional code
//...
ServerResponse.setCdnCacheable({
type: https.CacheDuration.LONG
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4567627367.html