I cache the query result in a file in the server side. When a new query is submitted the webservice searches to see if it has the answer in one of the cached files. If so, it will send out the file. If not it will generate the result and send it to the client. Now, when it send the cached file, downloading is much faster (compared to generating the result and sending it in a string format). By download time I mean (the total time the user waits for the response)-(time spent for processing on the server)
Do you have any idea what the reason is? Or any suggestion that how I can find it out?