How to get HTTPjob to load "current" results?

NFOBoy

Active Member
Licensed User
Longtime User
Ok,

so I'm running a service and here is the code for when the service runs an update of grabbing an RSS Feed's data to parse:
(job1 is declared in Globals as an Httpjob from the HTTPUtils2Service combo pack)

B4X:
Sub rv_RequestUpdate
    mParser.Initialize(Me, "bahtsold")
    job1.Initialize("job1", Me)

    CallSubDelayed2(job1, "Download", "http://www.bahtsold.com/rss.php")
'   
    strTime = "Reload"
    rv.SetText("lblTime", strTime)
    rv.UpdateWidget
End Sub

Now, when I run this for the first time after install, the data is up to date. But, when the refresh is called (either manually or activated by StartService), the data will sometimes be "old"

By this, I mean that if I refresh the same page on my PC, it will have a few more items on it than my call gets. (by this I mean "newer items" as the list is always 40 items)

But, if I change my phone to take the 3G connection vs WiFi, then the data will almost "always" be the newer version I see on my PC. But wait, there's more, if I go back to the WiFi, then most of the time, it reverts to the "old" data. (same code as above is the only code call for Httpjob) As you can see, I initialize the job each time (and release it at the end of the process, but that would be a memory issue)

This almost seems to me that there is a cached file on the WiFi side of the equation (not on the phone). Is there a way to send an httpjob request such that it says "give me the newest data available, and not the cache.. as that's why I'm paying the monthly fee for this fast internet connection, you #$#$@"? :)
 

NFOBoy

Active Member
Licensed User
Longtime User
Erel, tried re-dimming, and no change in behavior. If I go through my cell data provider, list is new, and then back to wifi thru my house, back to old. It definitely seems like a cache on the server side, but my PC, does not exhibit the same issue (using the same router to the internet).

I'm confused by this behavior, and just wonder how a PC makes its call to get a page's data, why it gets the newest and greatest info, but I can't do that with the request from my phone. Is there an option available from a browser on a PC to do the HTTP request in a different manner than we have available to us?
 
Upvote 0
Top