I am using UrlFetchApp in a google apps script to perform a get, as follows:
var optAdvancedArgs = {
"method": "GET",
"headers": {"Cache-Control": "no-cache", "Pragma": "no-cache"},
};
var response = UrlFetchApp.fetch(url, optAdvancedArgs);
Despite my attempt to disable the cache in the headers, the response I get is always a cached copy. If I perform a wget in my console using the same url, I see receive an up to date version.
My question is: How can I really disable the cache when performing a UrlFetchApp.fetch? Is there something wrong with my code?