0
0

More than 3 years have passed since last update.

GCSのキャッシュ

Posted at

なんでかよくわからないけど、GCSに格納したファイルを更新してアクセスしてもキャッシュが残っているせいで更新されない!
no-cacheの設定しても反映されない!
AndroidアプリからGCSに格納したJSONを見たいのに反映されないなんて、困る!

そんな時は、パスの最後に?uuid=適当な文字列をつけたら更新される裏技を教えてもらったので、早速やってみると見事最新データが取得できましたよ:relaxed:

var path = getString(R.string.json_path) + "?uuid=" + getDate("yyyyMMddhhmmss")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0