Modules
Objects/Functions
SuiteScript 2.0
{ServerResponse}.setCdnCacheable({type: {https.CacheDuration.*}})
N/https Module
ServerResponse.setCdnCacheable()
Method Description:
Sets CDN caching for a period of time.
Returns:
void
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/https Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=ServerResponse.setCdnCacheable(options)
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_4567652215.html