- Make a ajax call which generating file cache, eg. aq.ajax(url, File.class, cb);
- If there is network error during AbstractAjaxCallback#copy(InputStream is, OutputStream os, String encoding, int max), there will generate a cached file with incomplete content.
- Make another ajax call with same url and cache, eg. aq.ajax(url, File.class, expire, cb), AQuery will return success with incomplete content file.
Suggestion:
in function AbstractAjaxCallback#copy, there shuold catch exception and remove incomplete cache file