0

I am currently caching a http response (json) in my app and then storing an audio file inside app directory. In a specific scenario, I would like to force http to query the server instead of using the cache. I tried deleting the cache by following steps from this post, but it deletes everything inside the app folder (including audio files).

Is there any way to delete only the http cache?

  • How are you caching the HTTP response? – Zun Aug 13 at 14:29
  • You won't have answer, without information above. – GensaGames Aug 13 at 14:50
  • @Zun: while making the http connection, I am using connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale) to cache it. maxStale is set to 7 days. – Ramnath Aug 16 at 2:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.