0

In my application, it opens a website using SFSafariViewController. I don't want user to always login when opening the website. And I didn't find any documentation about SFSafariViewController cache.

So how long does SFSafariViewController cache last?

asked Dec 29, 2022 at 9:42

1 Answer 1

0

SFSafariViewController use the standard iOS web view cache, which is managed by the system.

The duration for which items are stored in the cache is determined by the cache's eviction policy, which is based on a combination of the amount of storage space available and the age of the items in the cache.

So SFSafariViewController does'nt have its own cache and does not provide any APIs for managing the cache.

Use WKWebView instead, it will store cache

answered Dec 29, 2022 at 10:49
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.