Does anyone know by code or the web page code to prevent the webView control from saving cache? I have tried all of the meta tags and none of them work.
Thanks!
Warren
Does anyone know by code or the web page code to prevent the webView control from saving cache? I have tried all of the meta tags and none of them work.
Thanks!
Warren
Yea, add a random number on the end of the URL with a query string. Let’s say your accessing:
then make the URL:
http://google.com?cachebust=somerandomnumber
If you already have a query string in place:
http://somesinte.com/login.php?username=fred&password=barney
then you would need to use another & to add it:
http://somesinte.com/login.php?username=fred&password=barney&cachebust=somerandomnumber
Thanks. I tried it and that did the trick! For some reason at times the webView control is blank when going to the page and I need to refresh it to get the page to show. It doesn’t do that now but just in case, I put a timer with delay in there to request the same page one second later as a backup which is like a refresh.
Warren
Yea, add a random number on the end of the URL with a query string. Let’s say your accessing:
then make the URL:
http://google.com?cachebust=somerandomnumber
If you already have a query string in place:
http://somesinte.com/login.php?username=fred&password=barney
then you would need to use another & to add it:
http://somesinte.com/login.php?username=fred&password=barney&cachebust=somerandomnumber
Thanks. I tried it and that did the trick! For some reason at times the webView control is blank when going to the page and I need to refresh it to get the page to show. It doesn’t do that now but just in case, I put a timer with delay in there to request the same page one second later as a backup which is like a refresh.
Warren