I'm maintaining a J2ME application where I found a http request to http://www.google.com in application initialization. I asked the developer why there is a request to google. He said that this way the other requests that the application makes would be faster.
I removed this request to google.com and the other requests got slower.
Can anyone explain why this happened? How can I make the other request faster without making previous requests?
EDIT:
Making request to google in initialization:
- First request (after initialization) = 20sec
- Repeating the first request = 5sec
Without making request in initialization:
- First request = 40sec
- Repeating the first request = 5sec