PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD22] HTTPrequest Cache
[WD22] HTTPrequest Cache
Débuté par Sammy Broeders, 11 oct. 2017 10:47 - 1 réponse
Posté le 11 octobre 2017 - 10:47
Hello all,

In my application i use a login to a webshop, the webshop opens in a html controle. Then the user can put items in the shopping cart, and with a httprequest you can put the items to a database in the application. It al works ok all the time till this moment, they have updatet the webshop to a new server. When i do the httprequest to receive the shopping cart, the first time it works ok, but the next time i receive the cart from the first session. When i restart my application it works ok for 1 time. It looks like the httprequest is the second time from a Cache in Windev. It that possible? So when yes, how can i delete that Cache?

Thanks in advance,

Sammy
Posté le 11 octobre 2017 - 12:52
Hi Sammy

I do not understand your logic here...

So they change their server, you don't change your application, the behavior changes, and you think that somehow WINDEV is responsible?

From where I stand it looks like the problem is coming from their side... So what you can do first is to try and send the httprequest 'by hand' ie by pasting it in a web browser URL field... IF each time you get the same result, then you will be sure it's not coming from you.

However, if you want to solve the problem instead of finding the cause, you can try to add a random value as extra parameter (one that is NOT requested by the server).

So, at the end of your URL, you can try and add random=651651651651 with the value changing each time.

Normally, the server should see a different URL and therefore NOT serve cached content. As for the web site itself, it is not waiting for that parameter, so it should ignore it.

Best regards