Skip to content

Instantly share code, notes, and snippets.

@takuhou
Created January 24, 2015 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuhou/f30e7499d16c68315954 to your computer and use it in GitHub Desktop.
Save takuhou/f30e7499d16c68315954 to your computer and use it in GitHub Desktop.
Titanium.Network.HTTPClientでキャッシュを無効にする方法 ref: http://qiita.com/takuhou/items/5fb32d5a2f5f1942f2a3
App.Properties.getString("url", "http://XXXXXXXX.jp/app.json")
var client = Titanium.Network.createHTTPClient({
onload : function(e) {
// ------- //
},
cache : false,
});
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