Skip to content Skip to sidebar Skip to footer

Android.net.uri Change Caching Time

How can I change caching time? I receive a notification when the PDF file is updated on the server. I get the same link, but with another (previous) document. Since URL hashes the

Solution 1:

I solved my problem, I just changed the URL. And now every URL to the pdf file is unique and not cached.

url = url.Replace(" ", "%20");
url = $"{url}?random_number={new Date().Time}";

Post a Comment for "Android.net.uri Change Caching Time"