Modules
Objects/Functions
SuiteScript 2.0
http.CacheDuration.{|LONG|}
N/http Module
http.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/http Module
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=http.CacheDuration
Example:
// Code Example 1
// Add additional code
//...
ServerResponse.setCdnCacheable({
type: http.CacheDuration.MEDIUM
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4426027147.html