Salut, j'ai un petit probleme dans un soft en vb 6, j'utilise un controle WebBrowser qui doit rafraichir une page pour un module de statistique. bref, quand je veux ouvrir plusieurs fois la meme page, le controle ne recharge pas la page mais la lit depuis le cache du dsique dur...
Sur la msdn j'ai trouvé ca, la fonction " navigate " que j'utilise pour charger la page, apparement on peut mettre un flag " navNoReadFromCache "
et quand je met
webbrowser1.navigate strURL, navNoReadFromCacheca ne change rien, les pages sont toujours chargées depuis le cache :(
Comment faire ??
Actuellement la solution que j'ai trouvé pour contourner le probleme et de rajouter une variable d'url aleatoire afin que le controle pense qu'il s'agit d'une nouvelle page (genre "http://.../mapage.php?rnd=8454151"), ca marche trés bien , mais j'aurais aimé une solution + " propre " ;)
Merci !!
Tiré de la msdn :
Description
Navigates to the resource identified by a Universal Resource Locator (URL) or
to the file identified by a full path.
Syntax
object.NavigateURL [Flags,]
[TargetFrameName,] [PostData,] [Headers]
|
| Flags | Optional. A constant or value that specifies whether to add the resource to
the history list, whether to read from or write to the cache, and whether to
display the resource in a new window. It can be a combination of the following
constants or values.
| Constant | Value | Meaning | | navOpenInNewWindow | 1 | Open the resource or file in a new window. | | navNoHistory | 2 | Do not add the resource or file to the history list. The new page replaces
the current page in the list. | | navNoReadFromCache | 4 | Do not read from the disk cache for this navigation. | | navNoWriteToCache | 8 | Do not write the results of this navigation to the disk cache. |
|