Created
January 24, 2015 09:26
-
-
Save takuhou/f30e7499d16c68315954 to your computer and use it in GitHub Desktop.
Titanium.Network.HTTPClientでキャッシュを無効にする方法 ref: http://qiita.com/takuhou/items/5fb32d5a2f5f1942f2a3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Properties.getString("url", "http://XXXXXXXX.jp/app.json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = Titanium.Network.createHTTPClient({ | |
onload : function(e) { | |
// ------- // | |
}, | |
cache : false, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.setRequestHeader('Cache-Control','no-cache'); | |
client.setRequestHeader('Cache-Control','no-store'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment