主权项 |
1. A method for using a web-based client-server application offline, the method comprising:
reading a markup file that includes a list of web resource files and period information, the period information specified in the markup file being time information set up based on an amount remaining in a current plan data, wherein the period information is further set by web server's priority, a visit history, a current network usage, and a recently visited site, wherein reading the markup file includes reading, from a manifest file in the markup file, the time information set based on the total number of visits; connecting periodically to a web server based on the period information specified in the manifest file of the markup file; downloading, to a cache, at least one web resource file included in the list of the markup file from the web server; checking periodically whether the web resource file is updated in the web server based on the period information specified in the manifest file of the markup file; updating the at least one web resource file from the web server to the cache; presenting a web page using the downloaded web resource file and the updated web source file on offline status; presenting the web page using an alternative web resource file when the downloaded web resource file or the updated web resource file do not exist in the cache on offline status, wherein the alternative web resource file is specified in the markup file. |