2

We will do clear URL cache by using this removeAllCachedResponses in iOS, but in React Native how we can do and we are using fetch. We are unable to clear URL cache programmatically in React Native. Can anyone have a solution for this? Check here what I'm doing in Swift, how we can acheive this in React Native?

        URLCache.shared.diskCapacity = 0
        URLCache.shared.memoryCapacity = 0
        URLCache.shared.removeAllCachedResponses()
1
  • Please check this answer it has full details with references. Commented Jan 8, 2024 at 11:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.