Hello,
I'm using the following code in cloudscript to access a file:
var cdnUrl = server.GetContentDownloadUrl({
Key: _url
}).URL;
var httpResponse = http.request(cdnUrl, "get");
The file referenced by _url was updated 16 hours ago, in the server I was getting the older version of the file so I logged the cdn and non cdn urls within cloudcode:
log.info(("CDN: " + server.GetContentDownloadUrl({
Key: _url
}).URL);
log.info(("PF: " + server.GetContentDownloadUrl({
Key: _url,
ThruCDN: "False"
}).URL);
And accessed them from a web browser, both of them were getting the updated version of the file.
Thanks