Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 3 Monaten, 1 Woche
Letzter Beitrag:
vor 3 Monaten, 1 Woche
Beteiligte Autoren:
Fabrice Harari, Sammy Broeders

[WD22] HTTPrequest Cache

Startbeitrag von Sammy Broeders am 11.10.2017 08: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

Antworten:

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

von Fabrice Harari - am 11.10.2017 10:52
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.