HTTPRequest\HTTPClient cache management

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By burstina

hello,

I’m using HTTPrequest to load into memory a web page. It works fine, but android export has some issues:
Once I run application for the first time, it works like a charm, then I do the following:
*- modify the web page (and save changes, obviously)

  • close the application
  • reopen the application one, two or many times, doesn’t matter*
    Everytime I reopen the appication ,it get the previous version of the web page.
    The only way to get the updated page is to turn airplane mode off and turn it on just afterwards.

Looks like the application uses some permacache to store data get by HTTPRequest.

I’m not an android expert, perhaps it is some android behaviour, but it is really an issue for my project.
Any suggestion how to turn that permacache off?

thanks
Grazieno

:bust_in_silhouette: Reply From: nightblade9

I experienced this also. Restarting Godot doesn’t fix the problem, either. It looks like the cache expires by itself within a few minutes, though; so just re-run your app a few times and it’ll eventually work out.

If that’s the case, I feel like there should be a Godot-Proposal submitted about it. But to do that, one would need to do some research about how to actually implement that, perhaps investigating where in the codebase that caching occurs, or determining if the OS handles it / if the operation can be intercepted, etc.

Note: I know nothing of how any of that works.

Will Nations | 2019-12-12 04:00