DataRater Posted July 20, 2011 Share Posted July 20, 2011 Chrome and Firefox on Ubuntu and XP The following code appears to be looking at the cache before downloading so it is not picking up my latest maps data. downloadUrl("./DomXml.xml",true, function(data,responseCode) How can I force it to pull the latest version in from the server? Please help. Stephen Quote Link to comment https://forums.phpfreaks.com/topic/242449-downloadurldomxmlxmltrue-functiondataresponsecode/ Share on other sites More sharing options...
requinix Posted July 20, 2011 Share Posted July 20, 2011 A cheap fix would be downloadUrl("./DomXml.xml?" + new Date().getTime(),true, function(data,responseCode) { A better fix would be to adjust whatever caching mechanisms are in place so that the file isn't being cached (or is but appropriately). Quote Link to comment https://forums.phpfreaks.com/topic/242449-downloadurldomxmlxmltrue-functiondataresponsecode/#findComment-1245232 Share on other sites More sharing options...
DataRater Posted July 20, 2011 Author Share Posted July 20, 2011 Thanks. I'm trying this downloadUrl("./DomXml.xml?n=1",true, function(data,responseCode) Stephen Quote Link to comment https://forums.phpfreaks.com/topic/242449-downloadurldomxmlxmltrue-functiondataresponsecode/#findComment-1245248 Share on other sites More sharing options...
DataRater Posted July 21, 2011 Author Share Posted July 21, 2011 That worked. Quote Link to comment https://forums.phpfreaks.com/topic/242449-downloadurldomxmlxmltrue-functiondataresponsecode/#findComment-1245538 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.