I have a web page that downloads a large amount of preliminary files before showing useful content to users. Sometimes, this can take between 5 and 10 seconds on a standard connection and this can be very frustrating for users to wait for. It's this one file that's taking 90% of the time to load, so I want to do something about it.
I've done some reading about caching... is it possible to have this file's data cached so that it can be loaded instantly next time?
The URL it's obtaining information from looks like this: getData.php?id=A5324DFJK4
This data is being obtained through an AJAX call that returns XML data (then parsed by the app). The reason I used GET is to have it so that particular ID can be cached (I hope I'm right in doing this, the content varies dependent on the ID so I thought caching each one would make sense).
The actual platform the code to cache it would be executed on is a mobile phone, I'm using PhoneGap to build the app when finished. If anyone could enlighten me as to how I could use caching to improve my situation I'd really appreciate it.
Thanks!