WO2012075961A1 - 一种获取起始页的方法、装置和*** - Google Patents
一种获取起始页的方法、装置和*** Download PDFInfo
- Publication number
- WO2012075961A1 WO2012075961A1 PCT/CN2011/083739 CN2011083739W WO2012075961A1 WO 2012075961 A1 WO2012075961 A1 WO 2012075961A1 CN 2011083739 W CN2011083739 W CN 2011083739W WO 2012075961 A1 WO2012075961 A1 WO 2012075961A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- start page
- page
- current
- client
- hyperlink
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5681—Pre-fetching or pre-delivering data based on network characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for acquiring a start page.
- a wireless mobile device such as a mobile phone
- a start page a user site guide page displayed after the browser of the wireless mobile device is activated.
- the process of obtaining a start page by a wireless mobile device is as follows: After the browser of the wireless mobile device starts, it sends a start page acquisition request to the background server, and after receiving the start page acquisition request, the background server obtains the entire content of the start page. , return the entire contents of the start page to the wireless mobile device, and the wireless mobile device presents the start page to the user.
- embodiments of the present invention provide a method, an apparatus, and a system for acquiring a start page.
- the technical solution is as follows:
- a method of obtaining a start page comprising:
- the current start page is The content that changed compared to the last start page is sent to the client, so that the client updates the last start page according to the changed content to obtain the current start page.
- the method further includes:
- the client is notified to use the last start page as the current start page.
- the method further includes:
- the availability of each hyperlink on the current start page is monitored, and the available state of each hyperlink on the current start page is modified based on the availability of each hyperlink monitored.
- the method further includes:
- the method further includes:
- the current home page of the hyperlink corresponding to the request is obtained from the third-party website, and the home page of the local cache is replaced with the obtained current home page.
- the method further includes:
- the obtaining the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page specifically include:
- a device for obtaining a start page comprising:
- An obtaining module configured to obtain a last start page parameter corresponding to a last start page of the client and a current start page parameter corresponding to the current start page; a comparison module, configured to acquire the last start of the obtaining module The page parameter is compared with the current start page parameter obtained by the obtaining module;
- a first current start page obtaining module configured to: when the comparison result of the comparison module is that the last start page parameter is different from the current start page parameter, the current start page and the What happened on the last page compared to the previous page Sending to the client, causing the client to update the last start page according to the changed content to obtain the current start page.
- the device further includes:
- a second current start page obtaining module configured to notify the client to start the last time when the comparison result of the comparison module is that the last start page parameter is the same as the current start page parameter
- the start page is the current start page.
- the device further includes:
- a monitoring module configured to monitor availability of each hyperlink on the current start page, and modify an available state of each hyperlink on the current start page according to the availability of each hyperlink monitored .
- the device further includes:
- a homepage obtaining cache module configured to obtain and cache a front page of each hyperlink on the current start page in advance from a third-party website;
- the first homepage processing module is configured to receive a request sent by the client to access a hyperlink on the current start page, and return a home page of the locally cached hyperlink corresponding to the request to the client.
- the device further includes:
- a second homepage processing module configured to: when the first homepage processing module returns a locally cached first page of the hyperlink corresponding to the request to the client, obtain a super corresponding to the request from a third-party website The current home page of the link, replacing the home page of the local cache with the current home page obtained.
- the device further includes:
- An update module configured to acquire, from a third-party website, a first page of each hyperlink on the current start page according to a preset time interval, and replace the first page of each hyperlink on the current start page with the obtained The home page of each hyperlink on the current start page of the local cache.
- the acquiring module specifically includes:
- a start page update request obtaining unit configured to receive a start page update request sent by the client, where the start page update request includes a last start page parameter corresponding to a last start page of the client;
- a current start page obtaining unit configured to: after the start page update request obtaining unit acquires a start page update request sent by the client, acquire a current start page of the client, and calculate the current current The current start page parameter corresponding to the start page.
- a system for obtaining a start page comprising: a server;
- the server includes: a configuration server;
- the configuration server is configured to obtain a last start page parameter corresponding to a last start page of the client and a current start page parameter corresponding to the current start page; and the last start page parameter from the current start Start page parameters are compared; when When the last start page parameter is different from the current start page parameter, the content that changes the current start page compared to the last start page is sent to the client, so that the client The terminal updates the last start page according to the changed content to obtain the current start page.
- configuration server is further configured to notify the client to use the last start page as the current start when the last start page parameter is the same as the current start page parameter page.
- server further includes:
- a webpage address monitoring server configured to monitor availability of each hyperlink on the current start page, and to view an available state of each hyperlink on the current start page according to the availability of each hyperlink monitored to modify.
- server further includes:
- a start page server configured to obtain and cache a first page of each hyperlink on the current start page from a third-party website, and obtain the current start page from a third-party website according to a preset time interval.
- the first page of each hyperlink replacing the first page of each hyperlink on the current start page of the local cache with the obtained first page of each hyperlink on the current start page; receiving the access sent by the client
- the request for the hyperlink on the current start page returns the home page of the locally cached hyperlink corresponding to the request to the client, and obtains the current home page of the hyperlink corresponding to the request from the third-party website,
- the current home page obtained is replaced with the home page of the local cache.
- system further includes: the client;
- the client is configured to send a start page update request, where the start page update request includes a last start page parameter corresponding to the last start page of the client;
- the parameter that the configuration server obtains the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page is specifically: receiving a start page update request sent by the client,
- the start page update request includes a last start page parameter corresponding to the last start page of the client; acquiring a current start page of the client, and calculating a current start page corresponding to the current start page parameter.
- FIG. 1 is a flowchart of a method for obtaining a start page according to Embodiment 1 of the present invention
- 2 is a schematic structural diagram of a system for acquiring a start page according to Embodiment 2 of the present invention
- FIG. 3 is a schematic structural diagram of another system for obtaining a start page according to Embodiment 2 of the present invention.
- FIG. 4 is a schematic structural diagram of an apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 5 is a schematic structural diagram of a second apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 6 is a schematic structural diagram of a third apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 7 is a schematic structural diagram of a fourth apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 8 is a schematic structural diagram of a fifth apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 9 is a schematic structural diagram of a sixth apparatus for acquiring a start page according to Embodiment 3 of the present invention.
- FIG. 10 is a schematic structural diagram of a system for acquiring a start page according to Embodiment 4 of the present invention.
- FIG. 11 is a schematic structural diagram of a second system for acquiring a start page according to Embodiment 4 of the present invention.
- FIG. 12 is a schematic structural diagram of a third system for acquiring a start page according to Embodiment 4 of the present invention.
- FIG. 13 is a schematic structural diagram of a fourth system for acquiring a start page according to Embodiment 4 of the present invention. detailed description
- an embodiment of the present invention provides a method for obtaining a start page, including:
- the client may be a wireless mobile device such as a mobile phone or a PDA, and other similar devices, which are not specifically limited.
- the last start page is defined relative to the current start page, and the last start page is the start page before the current start page.
- the last start page parameter is a parameter that can map the content of the last start page, for example, a hash value (such as MD5 (Message-Digest Algorithm 5)) parameter, or Parameters such as a data dictionary are used, but are not limited thereto, and the applicable parameters can be flexibly selected according to actual application conditions.
- the current start page parameter is consistent with the last start page parameter.
- the current start page parameter calculated here is also the MD5 parameter, and according to the specific adopted parameter, Calculate using the corresponding calculation method.
- the current start page needs to be compared with the last start page.
- the changed content is sent to the client. Sends the content of the current start page to the last page compared to the last start page, for example, when the start page consists of multiple Items (a drop-down list representing the start page), the current start page and the top
- the client can update the last start page according to the changed part of the item to obtain the current start page. It is not necessary to send the entire current start page to the client, which avoids the need for the client to download a large amount of content, which reduces the download amount and saves traffic.
- the method further includes:
- the client is notified to use the last start page as the current start page.
- the client is notified to use the last start page as the current start page. For example, it can be notified by sending an empty string to the client. After receiving the empty string, the client does not need to update, and the last start page is used.
- the method further includes:
- the method further includes:
- the method further includes: obtaining a current homepage of the hyperlink corresponding to the request from the third-party website, and replacing the locally cached homepage with the obtained current homepage.
- the method further includes:
- obtaining the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page specifically include: Receiving a start page update request sent by the client, where the start page update request includes a last start page parameter corresponding to the last start page of the client;
- obtaining the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page are not limited to being obtained by the above method, and may be used according to actual application conditions. A viable way. For example, after receiving the start page update request sent by the client, obtaining the last start page and the current start page of the client, and then calculating the last start page parameter corresponding to the last start page and The current start page parameter corresponding to the current start page.
- the method for obtaining a start page when the last start page parameter is different from the current start page parameter, only the content whose current start page changes compared with the last start page is needed. Sended to the client, the client updates the last start page according to the changed content to get the current start page, without sending the entire current start page to the client, reducing the download amount of the client, saving Client traffic.
- the last start page parameter is the same as the current start page parameter, it is only necessary to notify the client to use the last start page as the current start page, and it is not necessary to send any content of the current start page to the client, and further reduce
- the download volume of the client is small, and the traffic of the client is saved.
- the start page can be made Dynamic update.
- the first page of the cached corresponding hyperlink can be returned to the client requesting access to the hyperlink on the current start page, which can speed up the display of the home page to the user. speed.
- the current home page of the hyperlink corresponding to the request is obtained in real time, and the locally cached home page is replaced with the obtained current home page, thereby ensuring the content of the home page is accurate. Sex.
- the method for obtaining the start page in the embodiment of the present invention may be implemented by a backend server or by multiple backend servers. For convenience of description, the following is further illustrated by using multiple backend servers as an example.
- an embodiment of the present invention provides a system for obtaining a start page, where the system includes: a client 20 and a server 30.
- the server 30 includes: a Configurator server 301, a Monitor Url (Uniform / Universal Resource Locator) server 302, and a Homepage Server 303.
- the client 20 is configured to send a start page update request, where the start page update request includes the last start of the client 20 The last start page parameter corresponding to the page.
- the client 20 sends a start page update request to the configuration server 301.
- the last start page parameter is a parameter that can map the content of the last start page, for example, a hash (hash) value (such as MD5) parameter, or a parameter such as a data dictionary, but is not limited thereto. You can flexibly select the applicable parameters according to the actual application.
- a hash (hash) value such as MD5
- a parameter such as a data dictionary
- the configuration server 301 is configured to receive a start page update request, obtain a current start page of the client 20, and calculate a current start page parameter corresponding to the current start page; The start page parameter is compared; if the last start page parameter is different from the current start page parameter, the content that changes the current start page compared to the last start page is sent to the client 20, so that the client 20 Update the last start page according to the changed content to get the current start page; if the last start page parameter is the same as the current start page parameter, notify the client 20 to use the last start page as the current start page. .
- the configuration server 301 can obtain the current start page of the terminal from the database according to the platform and version of the client 20.
- the current start page corresponding to the client 20 of various platforms and versions is pre-stored in the database, and specifically, the management personnel may store and manage through the configuration management server, where the configuration management server is the item of the start page (
- the configuration of the drop-down list of the start page, the first-level link (link), and the configuration management platform of the second-level link are similar to the prior art, and are not described here.
- the current start page parameter is consistent with the last start page parameter.
- the current start page parameter calculated here is also the MD5 parameter, and according to the specific adopted parameter. , can be calculated using the corresponding calculation method.
- the current start page needs to be compared with the last start page.
- the changed content is sent to the client 20.
- the content that changes the current start page compared to the last start page is sent to the client 20, for example, when the start page is composed of a plurality of Items (a drop-down list indicating a start page), the current start page and the top
- the configuration server 301 only needs to send the changed part of the item to the client 20, and the client 20 updates the last start page according to the changed part of the item. That is, the current start page can be obtained, and the configuration server 301 does not need to send the entire current start page to the client 20, which avoids the client 20 needing to download a large amount of content, reduces the download amount, and saves traffic.
- the client 20 needs to be notified to use the last start page as the current start.
- the page is fine. Notifying the client 20 to use the last start page as the current start page, for example, by sending an empty string to the client 20, the guest After receiving the empty string, the terminal 20 does not need to update, and the last start page is used.
- the web address monitoring server 302 is configured to monitor the availability of each hyperlink on the current start page, and modify the available status of each hyperlink on the current start page according to the availability of each hyperlink monitored.
- the webpage address monitoring server 302 can periodically (can set a specific timing time according to actual application conditions) to monitor the availability of each hyperlink on the start page (each hyperlink corresponds to a third-party website, if a third-party website is accessed) Unsuccessful (ie, the third-party website cannot be opened), the hyperlink is not available, otherwise the hyperlink is available), when the third-party website is repeatedly connected due to downtime or network problems (can be set according to the actual application)
- modify the available status of the hyperlink in the database to be unavailable that is, automatically block the link of the third-party website
- notify the configuration server 301 to obtain a new current start page from the database (new current The hyperlink to the third-party website will not be visible on the start page.
- the available status of the hyperlink of the third-party website in the database is modified to be available, and the hyperlink of the third-party website can be Automatically displayed on the current start page to enable dynamic updates of hyperlinks on the current start page.
- the start page server 303 is configured to obtain and cache the first page of each hyperlink on the current start page from a third-party website, and obtain each of the current start pages from the third-party website according to a preset time interval.
- the home page of the hyperlink replacing the home page of each hyperlink on the current start page of the local cache with the first page of each hyperlink on the obtained current start page; receiving the access sent by the client 20 on the current start page
- the request of the hyperlink returns the locally cached first page of the hyperlink corresponding to the request to the client 20, obtains the current home page of the hyperlink corresponding to the request from the third-party website, and replaces the locally cached home page with the obtained current home page. .
- the start page server 303 can return the first page of the hyperlink on the current start page of the cache to the user, so that the client 20 can quickly open the home page of the hyperlink, and speed up the display of the home page. The speed of the user. And after returning the home page of the hyperlink on the current start page of the cache to the user, immediately obtain the current home page of the hyperlink corresponding to the request from the third-party website, and replace the home page of the local cache with the obtained current home page, Ensure that the client 20 obtains the current home page in real time, and ensures the accuracy of the content of the home page.
- the first page of each hyperlink on the current start page is obtained from the third-party website, and the current cache page on the current start page is replaced with the first page of each hyperlink on the obtained current start page.
- the home page of each hyperlink can update the home page of each hyperlink on the current start page of the local cache to ensure the timeliness of the content of the third-party website.
- the server 30 may further include:
- a proxy server (WupProxyServer) 304, configured to receive and forward a start page update request sent by the client 20 to the configuration server 301; receive and change the current start page sent by the configuration server 301 compared to the last start page.
- the content is forwarded to the client 20, or the notification client 20, which is sent by the configuration server 301, forwards the information of the last start page as the current start page to the client 20.
- the proxy server uses the HTTP (Hyper Text Transfer Protocol) protocol.
- HTTP Hyper Text Transfer Protocol
- the client 20 needs to interact with the configuration server 301 to implement the corresponding functions, and also needs to interact with other background servers in the prior art to implement other corresponding functions. Therefore, the client 20 needs to record the addresses of many servers. The burden on the client 20 is heavy. If the proxy server interacts with other background servers such as the configuration server 301, the client 20 only needs to record the address of the proxy server, which can reduce the burden on the client 20.
- the client updates the last start page according to the changed content to get the current start page, without sending the entire current start page to the client, reducing the download amount of the client, saving Client traffic.
- the last start page parameter is the same as the current start page parameter, it is only necessary to notify the client to use the last start page as the current start page, and it is not necessary to send any content of the current start page to the client, and further reduce The download volume of the client is small, and the traffic of the client is saved.
- the start page can be made Dynamic update.
- the first page of the cached corresponding hyperlink can be returned to the client requesting access to the hyperlink on the current start page, which can speed up the display of the home page to the user. speed.
- the current home page of the hyperlink corresponding to the request is obtained in real time, and the locally cached home page is replaced with the obtained current home page, thereby ensuring the content of the home page is accurate. Sex.
- the timeliness of the content of the first page can be ensured.
- an embodiment of the present invention provides an apparatus for acquiring a start page, where the apparatus includes:
- the obtaining module 401 is configured to obtain a last start page parameter corresponding to a last start page of the client and a current start page parameter corresponding to the current start page;
- the comparison module 402 is configured to compare the last start page parameter acquired by the obtaining module 401 with the current start page parameter acquired by the obtaining module 401;
- the first current start page obtaining module 403 is configured to: when the comparison result of the comparison module 403 is that the last start page parameter is different from the current start page parameter, the current start page is compared with the last start page.
- the changed content is sent to the client, causing the client to update the last start page according to the changed content to get the current start page.
- the apparatus further includes:
- a second current start page obtaining module 404 configured to: when the comparison result of the comparison module 402 is the last start page parameter and When the previous start page parameters are the same, the client is notified to use the last start page as the current start page.
- the device further includes:
- the monitoring module 405 is configured to monitor the availability of each hyperlink on the current start page, and modify the available status of each hyperlink on the current start page according to the availability of each hyperlink monitored.
- the device further includes:
- the homepage obtaining cache module 406 is configured to obtain and cache the first page of each hyperlink on the current start page from a third-party website in advance;
- the first homepage processing module 407 is configured to receive a request sent by the client to access a hyperlink on the current start page, and return a homepage of the locally cached hyperlink corresponding to the request to the client.
- the device further includes:
- the second homepage processing module 408 is configured to: when the first homepage processing module 407 returns the locally cached first page of the hyperlink corresponding to the request to the client, obtain the current homepage of the hyperlink corresponding to the request from the third-party website. , replace the local cached home page with the current home page obtained.
- the device further includes:
- the updating module 409 is configured to obtain, from the third-party website, the first page of each hyperlink on the current starting page according to the preset time interval, and replace the local cache with the first page of each hyperlink on the obtained current starting page. The first page of each hyperlink on the current start page.
- the obtaining module 401 specifically includes:
- a start page update request obtaining unit configured to receive a start page update request sent by the client, where the start page update request includes a last start page parameter corresponding to the last start page of the client;
- a current start page obtaining unit configured to: after the start page update request obtaining unit acquires a start page update request sent by the client, acquire a current start page of the client, and calculate, to calculate, the current start page Current start page parameter.
- the device for obtaining a start page when the last start page parameter is different from the current start page parameter, only needs to change the content of the current start page compared with the last start page. Sended to the client, the client updates the last start page according to the changed content to get the current start page, without sending the entire current start page to the client, reducing the download amount of the client, saving Client traffic.
- the last start page parameter is the same as the current start page parameter, it is only necessary to notify the client to use the last start page as the current start page, and it is not necessary to send any content of the current start page to the client, and further reduce
- the download volume of the client is small, and the traffic of the client is saved.
- the start page can be made Dynamic update.
- the home page of each hyperlink enables the cached home page of the corresponding hyperlink to be returned to the client requesting access to the hyperlink on the current start page, which can speed up the display of the home page to the user.
- the current home page of the hyperlink corresponding to the request is obtained in real time, and the locally cached home page is replaced with the obtained current home page, thereby ensuring the content of the home page is accurate.
- Sex By updating the first page of each hyperlink on the current start page of the cache at a preset time interval, the timeliness of the content of the home page can be ensured.
- an embodiment of the present invention provides a system for obtaining a start page, where the system includes: a server 60.
- the server 60 includes: a configuration server 601;
- the configuration server 601 is configured to obtain the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page; compare the last start page parameter with the current start page parameter When the last start page parameter is different from the current start page parameter, the content that changes the current start page compared with the last start page is sent to the client, so that the client matches the content according to the changed content. The next start page is updated to get the current start page.
- configuration server 601 is further configured to notify the client to use the last start page as the current start page when the last start page parameter is the same as the current start page parameter.
- the server 60 further includes:
- the web address monitoring server 602 is configured to monitor the availability of each hyperlink on the current start page and modify the available status of each hyperlink on the current start page according to the availability of each hyperlink monitored.
- the server 60 further includes:
- a start page server 603 configured to acquire and cache a first page of each hyperlink on the current start page from a third-party website, and obtain the current start page from a third-party website according to a preset time interval.
- the first page of each hyperlink replaces the first page of each hyperlink on the current start page of the local cache with the first page of each hyperlink on the current start page obtained; receiving the current start of the visit sent by the client
- the request for the hyperlink on the page returns the locally cached first page of the hyperlink corresponding to the request to the client, obtains the current home page of the hyperlink corresponding to the request from the third-party website, and replaces the current home page with the obtained current page.
- Local cached home page configured to acquire and cache a first page of each hyperlink on the current start page from a third-party website, and obtain the current start page from a third-party website according to a preset time interval.
- the first page of each hyperlink replaces the first page of each hyperlink on the current start page of the local cache with the first page of each hyperlink on
- the system further includes: a client 50;
- the client 50 is configured to send a start page update request, where the start page update request includes a last start page parameter corresponding to the last start page of the client 50;
- the configuration server 601 obtains the last start page parameter corresponding to the last start page of the client and the current start page parameter corresponding to the current start page, specifically: receiving the start page update request sent by the client, and starting the page update request Including customers
- the last start page parameter corresponding to the last start page of the terminal obtain the current start page of the client, and calculate the current start page parameter corresponding to the current start page.
- the client updates the last start page according to the changed content to get the current start page, without sending the entire current start page to the client, reducing the download amount of the client, saving Client traffic.
- the last start page parameter is the same as the current start page parameter, it is only necessary to notify the client to use the last start page as the current start page, and it is not necessary to send any content of the current start page to the client, and further reduce The download volume of the client is small, and the traffic of the client is saved.
- the start page can be made Dynamic update.
- the first page of the cached corresponding hyperlink can be returned to the client requesting access to the hyperlink on the current start page, which can speed up the display of the home page to the user. speed.
- the current home page of the hyperlink corresponding to the request is obtained in real time, and the locally cached home page is replaced with the obtained current home page, thereby ensuring the content of the home page is accurate. Sex.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Description
一种获取起始页的方法、 装置和*** 本申请要求于 2010年 12月 9日提交中国专利局、 申请号为 201010591803.0、 发明名 称为 "一种获取起始页的方法、 装置和***" 的中国专利申请的优先权, 其全部内容通过 引用结合在本申请中。
说
技术领域
本发明涉及计算机技术领域, 特别涉及一种获取起始页的方法、 装置和***。 背景技术 书
随着计算机技术的发展, 用户可以通过手机、 PDA(Personal Digital Assistants, 个人数 字助理)等无线移动设备随时随地访问网站, 浏览网页, 获取各种信息。
在通过手机等无线移动设备访问网站, 浏览网页时, 首先需要获取起始页 (无线移动 设备的浏览器启动后展示出的用户站点引导页面)。 目前手机等无线移动设备获取起始页的 过程如下: 无线移动设备的浏览器启动后向后台服务器发送起始页获取请求, 后台服务器 接收到起始页获取请求后, 获取起始页的全部内容, 将起始页的全部内容返回给无线移动 设备, 无线移动设备将起始页展示给用户。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题:
每次启动无线移动设备的浏览器后, 无线移动设备都需要获取起始页的全部内容, 下 载量大, 浪费流量。 发明内容
为了解决现有技术的问题, 本发明实施例提供了一种获取起始页的方法、 装置和***。 所述技术方案如下:
一种获取起始页的方法, 所述方法包括:
获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当前起始页参 数;
将所述上次起始页参数与所述当前起始页参数进行比较;
如果所述上次起始页参数与所述当前起始页参数不相同, 则将所述当前起始页与所述
上次起始页相比发生变化的内容发送给所述客户端, 使得所述客户端根据发生变化的内容 对所述上次起始页进行更新得到所述当前起始页。
进一步地, 所述方法还包括:
如果所述上次起始页参数与所述当前起始页参数相同, 则通知所述客户端将所述上次 起始页作为所述当前起始页。
进一步地, 所述方法还包括:
监控所述当前起始页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性 对所述当前起始页上的每个超链接的可用状态进行修改。
进一步地, 所述方法还包括:
预先从第三方网站获取并缓存所述当前起始页上的每个超链接的首页;
接收所述客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所述请求 对应的超链接的首页返回给所述客户端。
进一步地, 所述将本地缓存的与所述请求对应的超链接的首页返回给所述客户端之后 还包括:
从第三方网站获取与所述请求对应的超链接的当前首页, 用获取的当前首页替换本地 缓存的首页。
进一步地, 所述方法还包括:
按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用 获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链接 的首页。
进一步地, 所述获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的 当前起始页参数具体包括:
接收客户端发送的起始页更新请求, 所述起始页更新请求中包括客户端的上次起始页 对应的上次起始页参数;
获取所述客户端的当前起始页, 并计算得到所述当前起始页对应的当前起始页参数。 一种获取起始页的装置, 所述装置包括:
获取模块, 用于获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的 当前起始页参数; 比较模块, 用于将所述获取模块获取的上次起始页参数与所述获取模块 获取的当前起始页参数进行比较;
第一当前起始页获取模块, 用于当所述比较模块的比较结果是所述上次起始页参数与 所述当前起始页参数不相同时, 将所述当前起始页与所述上次起始页相比发生变化的内容
发送给所述客户端, 使得所述客户端根据发生变化的内容对所述上次起始页进行更新得到 所述当前起始页。
进一步地, 所述装置还包括:
第二当前起始页获取模块, 用于当所述比较模块的比较结果是所述上次起始页参数与 所述当前起始页参数相同时, 通知所述客户端将所述上次起始页作为所述当前起始页。
进一步地, 所述装置还包括:
监控模块, 用于监控所述当前起始页上的每个超链接的可用性, 并根据监控到的每个 超链接的可用性对所述当前起始页上的每个超链接的可用状态进行修改。
进一步地, 所述装置还包括:
首页获取缓存模块, 用于预先从第三方网站获取并缓存所述当前起始页上的每个超链 接的首页;
第一首页处理模块, 用于接收所述客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所述请求对应的超链接的首页返回给所述客户端。
进一步地, 所述装置还包括:
第二首页处理模块, 用于当所述第一首页处理模块将本地缓存的与所述请求对应的超 链接的首页返回给所述客户端后, 从第三方网站获取与所述请求对应的超链接的当前首页, 用获取的当前首页替换本地缓存的首页。
进一步地, 所述装置还包括:
更新模块, 用于按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超 链接的首页, 用获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页 上的每个超链接的首页。
进一步地, 所述获取模块具体包括:
起始页更新请求获取单元, 用于接收所述客户端发送的起始页更新请求, 所述起始页 更新请求中包括所述客户端的上次起始页对应的上次起始页参数;
当前起始页获取单元, 用于在所述起始页更新请求获取单元获取到所述客户端发送的 起始页更新请求后, 获取所述客户端的当前起始页, 并计算得到所述当前起始页对应的当 前起始页参数。
一种获取起始页的***, 所述***包括: 服务端;
所述服务端包括: 配置服务器;
所述配置服务器, 用于获取客户端的上次起始页对应的上次起始页参数和当前起始页 对应的当前起始页参数; 将所述上次起始页参数与所述当前起始页参数进行比较; 当所述
上次起始页参数与所述当前起始页参数不相同时, 将所述当前起始页与所述上次起始页相 比发生变化的内容发送给所述客户端, 使得所述客户端根据发生变化的内容对所述上次起 始页进行更新得到所述当前起始页。
进一步地, 所述配置服务器, 还用于当所述上次起始页参数与所述当前起始页参数相 同时, 通知所述客户端将所述上次起始页作为所述当前起始页。
进一步地, 所述服务端还包括:
网页地址监控服务器, 用于监控所述当前起始页上的每个超链接的可用性, 并根据监 控到的每个超链接的可用性对所述当前起始页上的每个超链接的可用状态进行修改。
进一步地, 所述服务端还包括:
起始页服务器, 用于预先从第三方网站获取并缓存所述当前起始页上的每个超链接的 首页, 并按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链 接的首页; 接收所述客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所 述请求对应的超链接的首页返回给所述客户端, 从第三方网站获取与所述请求对应的超链 接的当前首页, 用获取的当前首页替换本地缓存的首页。
进一步地, 所述***还包括: 所述客户端;
所述客户端, 用于发送起始页更新请求, 所述起始页更新请求中包括所述客户端的上 次起始页对应的上次起始页参数;
相应地,
所述配置服务器获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的 当前起始页参数具体为: 接收所述客户端发送的起始页更新请求, 所述起始页更新请求中 包括所述客户端的上次起始页对应的上次起始页参数; 获取所述客户端的当前起始页, 并 计算得到所述当前起始页对应的当前起始页参数。
本发明实施例提供的技术方案的有益效果是:
当上次起始页参数与当前起始页参数不相同时, 只需将当前起始页与上次起始页相比 发生变化的内容发送给客户端, 客户端根据发生变化的内容对上次起始页进行更新即可得 到当前起始页, 无需将整个当前起始页发送给客户端, 减小了客户端的下载量、 节约了客 户端的流量。 附图说明
图 1是本发明实施例 1提供的一种获取起始页的方法流程图;
图 2是本发明实施例 2提供的一种获取起始页的***结构示意图;
图 3是本发明实施例 2提供的另一种获取起始页的***结构示意图;
图 4是本发明实施例 3提供的第一种获取起始页的装置结构示意图;
图 5是本发明实施例 3提供的第二种获取起始页的装置结构示意图;
图 6是本发明实施例 3提供的第三种获取起始页的装置结构示意图;
图 7是本发明实施例 3提供的第四种获取起始页的装置结构示意图;
图 8是本发明实施例 3提供的第五种获取起始页的装置结构示意图;
图 9是本发明实施例 3提供的第六种获取起始页的装置结构示意图;
图 10是本发明实施例 4提供的第一种获取起始页的***结构示意图;
图 11是本发明实施例 4提供的第二种获取起始页的***结构示意图;
图 12是本发明实施例 4提供的第三种获取起始页的***结构示意图;
图 13是本发明实施例 4提供的第四种获取起始页的***结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明实施方式作 进一步地详细描述。
实施例 1
参见图 1, 本发明实施例提供了一种获取起始页的方法, 包括:
101: 获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当前起始页 参数。
其中, 客户端具体可以是手机、 PDA等无线移动设备, 以及其他类似的设备, 对此不 做具体限定。
其中, 上次起始页是相对于当前起始页来定义的, 上次起始页是指当前起始页之前的 起始页。上次起始页参数是可以映射出上次起始页的内容的参数,例如可以采用取 hash (哈 希) 值 (如 MD5 ( Message-Digest Algorithm 5 , 信息-摘要算法 5 )) 参数, 或采用数据字典 等参数, 但并不限于此, 可以根据实际应用情况, 灵活选择适用的参数。 当前起始页参数 与上次起始页参数相一致, 当上次起始页参数采用 MD5参数时, 此处计算得到的当前起始 页参数也为 MD5参数, 并且根据具体采用的参数, 可以采用相应的计算方法进行计算。
102: 将上次起始页参数与当前起始页参数进行比较。
103: 如果上次起始页参数与当前起始页参数不相同, 则将当前起始页与上次起始页相 比发生变化的内容发送给客户端, 使得客户端根据发生变化的内容对上次起始页进行更新
得到当前起始页。
如果上次起始页参数与当前起始页参数不相同, 则证明上次起始页的内容与当前起始 页的内容不相同, 则需要将当前起始页与上次起始页相比发生变化的内容发送给客户端。 将当前起始页与上次起始页相比发生变化的内容发送给客户端,例如,当起始页由多个 Item (表示起始页的下拉列表) 组成时, 当前起始页与上次起始页相比有某个 Item有变化时, 只需将该 Item的变化部分发送给客户端, 客户端根据该 Item的变化部分对上次起始页进行 更新即可以得到当前起始页, 不必将整个当前起始页发送给客户端, 避免了客户端需要下 载大量内容, 减少了下载量、 节约了流量。
进一步地, 该方法还包括:
如果上次起始页参数与当前起始页参数相同, 则通知客户端将上次起始页作为当前起 始页。
如果上次起始页参数与当前起始页参数相同, 则证明上次起始页的内容与当前起始页 的内容相同, 则只需要通知客户端将上次起始页作为当前起始页即可。 通知客户端将上次 起始页作为当前起始页, 例如, 可以通过向客户端发送空串的方式进行通知, 客户端接收 到空串后就不用更新, 沿用上次起始页。
进一步地, 该方法还包括:
监控当前起始页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对当 前起始页上的每个超链接的可用状态进行修改。
进一步地, 该方法还包括:
预先从第三方网站获取并缓存当前起始页上的每个超链接的首页;
接收客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与该请求对应的 超链接的首页返回给客户端。
进一步地, 将本地缓存的与该请求对应的超链接的首页返回给客户端之后还包括: 从第三方网站获取与该请求对应的超链接的当前首页, 用获取的当前首页替换本地缓 存的首页。
进一步地, 该方法还包括:
按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用 获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链接 的首页。
进一步地, 获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当前 起始页参数具体包括:
接收客户端发送的起始页更新请求, 该起始页更新请求中包括客户端的上次起始页对 应的上次起始页参数;
获取该客户端的当前起始页, 并计算得到该当前起始页对应的当前起始页参数。
需要说明的是, 获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的 当前起始页参数并不限于通过上述方法获取, 可以根据实际应用状况, 采用其他任何可行 的方式。 如: 可以是在接收到客户端发送的起始页更新请求后, 获取该客户端的上次起始 页和当前起始页, 然后计算得到上次起始页对应的上次起始页参数和当前起始页对应的当 前起始页参数。
本发明实施例所述的获取起始页的方法, 当上次起始页参数与当前起始页参数不相同 时, 只需将当前起始页与上次起始页相比发生变化的内容发送给客户端, 客户端根据发生 变化的内容对上次起始页进行更新即可得到当前起始页, 无需将整个当前起始页发送给客 户端, 减小了客户端的下载量、 节约了客户端的流量。 当上次起始页参数与当前起始页参 数相同时, 只需通知客户端将上次起始页作为当前起始页即可, 无需发送当前起始页的任 何内容给客户端, 更加减小了客户端的下载量、 节约了客户端的流量。 通过监控当前起始 页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对当前起始页上的每个 超链接的可用状态进行修改, 使得可以对起始页进行动态更新。 通过缓存当前起始页上的 每个超链接的首页, 使得可以将缓存的相应的超链接的首页返回给请求访问当前起始页上 的该超链接的客户端, 可以加快首页展示给用户的速度。 当将本地缓存的与请求对应的超 链接的首页返回给客户端之后, 实时获取与该请求对应的超链接的当前首页, 用获取的当 前首页替换本地缓存的首页, 可以确保首页的内容的准确性。 按照预设的时间间隔, 对缓 存的当前起始页上的每个超链接的首页进行更新, 可以确保首页的内容的时效性。 本发明实施例所述的获取起始页的方法可以通过一个后台服务器实现, 也可以由多个 后台服务器实现, 为了便于说明, 下面以通过多个后台服务器实现为例进行进一步地说明。
实施例 2
参见图 2, 本发明实施例提供了一种获取起始页的***, 该***包括: 客户端 20和服 务端 30。
服务端 30包括: 配置 (Configer)服务器 301、 网页地址监控 (Monitor Url (Uniform / Universal Resource Locator, 统一资源定位符也称为网页地址))服务器 302和起始页服务器 ( HomepageServer ) 303。
客户端 20, 用于发送起始页更新请求, 该起始页更新请求中包括客户端 20的上次起始
页对应的上次起始页参数。
具体地, 当用户启动客户端 20浏览器后, 客户端 20向配置服务器 301发送起始页更 新请求。
其中, 上次起始页参数是可以映射出上次起始页的内容的参数, 例如可以采用取 hash (哈希) 值 (如 MD5 ) 参数, 或采用数据字典等参数, 但并不限于此, 可以根据实际应用 情况, 灵活选择适用的参数。
配置服务器 301, 用于接收起始页更新请求, 获取该客户端 20的当前起始页, 并计算 得到该当前起始页对应的当前起始页参数; 将上次起始页参数与当前起始页参数进行比较; 如果上次起始页参数与当前起始页参数不相同, 则将当前起始页与上次起始页相比发生变 化的内容发送给客户端 20,使得客户端 20根据发生变化的内容对上次起始页进行更新得到 当前起始页; 如果上次起始页参数与当前起始页参数相同, 则通知客户端 20将上次起始页 作为当前起始页。
具体地, 配置服务器 301在接收到起始页更新请求后, 可以根据该客户端 20的平台和 版本, 从数据库中获取该终端的当前起始页。 其中, 数据库中预先存储有各种平台和版本 的客户端 20对应的当前起始页, 并且具体地可以是管理人员通过配置管理服务器进行存储 和管理,配置管理服务器是起始页的项目 Item (表示起始页的下拉列表)、一级 Link (链接)、 二级 Link的配置管理平台, 具体作用与现有技术类似, 此处不再赘述。
其中,当前起始页参数与上次起始页参数相一致,当上次起始页参数采用 MD5参数时, 此处计算得到的当前起始页参数也为 MD5参数, 并且根据具体采用的参数, 可以采用相应 的计算方法进行计算。
如果上次起始页参数与当前起始页参数不相同, 则证明上次起始页的内容与当前起始 页的内容不相同,则需要将当前起始页与上次起始页相比发生变化的内容发送给客户端 20。 将当前起始页与上次起始页相比发生变化的内容发送给客户端 20, 例如, 当起始页由多个 Item (表示起始页的下拉列表) 组成, 当前起始页与上次起始页相比有某个 Item发生变化 时,配置服务器 301只需将该 Item发生变化的部分发送给客户端 20,客户端 20根据该 Item 发生变化的部分对上次起始页进行更新即可以得到当前起始页, 配置服务器 301 不必将整 个当前起始页发送给客户端 20, 避免了客户端 20需要下载大量内容, 减少了下载量、 节约 了流量。
如果上次起始页参数与当前起始页参数相同, 则证明上次起始页的内容与当前起始页 的内容相同, 则只需要通知客户端 20将上次起始页作为当前起始页即可。 通知客户端 20 将上次起始页作为当前起始页, 例如, 可以通过向客户端 20发送空串的方式进行通知, 客
户端 20接收到空串后就不用更新, 沿用上次起始页。
网页地址监控服务器 302, 用于监控当前起始页上的每个超链接的可用性, 并根据监控 到的每个超链接的可用性对当前起始页上的每个超链接的可用状态进行修改。
具体地, 网页地址监控服务器 302可以定时 (可以根据实际应用情况设置具体的定时 时间) 监控起始页上的每个超链接的可用性 (每个超链接对应一个第三方网站, 若访问第 三方网站不成功 (即打不开第三方网站), 则该超链接不可用, 否则该超链接可用), 当第 三方网站因宕机或网络问题连续多次 (可根据实际应用情况设置具体的次数) 都访问不成 功时, 将数据库中该超链接的可用状态修改为不可用 (即自动屏蔽该第三方网站的链接), 并通知配置服务器 301 从数据库获取新的当前起始页 (新的当前起始页上将看不到该第三 方网站的超链接), 当该第三方网站恢复后, 将数据库中该第三方网站的超链接的可用状态 修改为可用, 该第三方网站的超链接又可自动展示在当前起始页上, 从而实现当前起始页 上的超链接的动态更新。
起始页服务器 303,用于预先从第三方网站获取并缓存当前起始页上的每个超链接的首 页, 并按照预设的时间间隔, 从第三方网站获取当前起始页上的每个超链接的首页, 用获 取的当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链接的首 页; 接收客户端 20发送的访问当前起始页上的超链接的请求, 将本地缓存的与该请求对应 的超链接的首页返回给客户端 20, 从第三方网站获取与该请求对应的超链接的当前首页, 用获取的当前首页替换本地缓存的首页。
当客户端 20访问超链接时, 起始页服务器 303可以将缓存的当前起始页上的该超链接 的首页返回给用户, 使得客户端 20可以迅速打开该超链接的首页, 加快首页展示给用户的 速度。 并在将缓存的当前起始页上的该超链接的首页返回给用户后, 立即从第三方网站获 取与该请求对应的超链接的当前首页, 用获取的当前首页替换本地缓存的首页, 可以保证 客户端 20实时获取到当前首页, 确保首页的内容的准确性。 按照预设的时间间隔, 从第三 方网站获取当前起始页上的每个超链接的首页, 用获取的当前起始页上的每个超链接的首 页替换本地缓存的当前起始页上的每个超链接的首页, 可以对本地缓存的当前起始页上的 每个超链接的首页进行更新, 确保第三方网站的内容的时效性。
进一步地, 参见图 3, 该服务端 30还可以包括:
代理服务器(WupProxyServer) 304, 用于接收并将客户端 20发送的起始页更新请求转 发给配置服务器 301 ;接收并将配置服务器 301发送的当前起始页与上次起始页相比发生变 化的内容转发给客户端 20,或接收并将配置服务器 301发送的通知客户端 20将上次起始页 作为当前起始页的信息转发给客户端 20。
其中, 代理服务器采用 HTTP (Hyper Text Transfer Protocol, 超文本传输协议) 协议。 由于实际应用中客户端 20不但需要与配置服务器 301进行交互实现相应的功能, 而且还需 要与现有技术中的其他后台服务器进行交互实现其他相应的功能, 因此客户端 20需要记载 许多服务器的地址, 客户端 20的负担很重。 如果通过代理服务器与配置服务器 301等其他 后台服务器进行交互, 则客户端 20只需要记载代理服务器的地址即可, 可以减轻客户端 20 的负担。
本发明实施例所述的获取起始页的***, 当上次起始页参数与当前起始页参数不相同 时, 只需将当前起始页与上次起始页相比发生变化的内容发送给客户端, 客户端根据发生 变化的内容对上次起始页进行更新即可得到当前起始页, 无需将整个当前起始页发送给客 户端, 减小了客户端的下载量、 节约了客户端的流量。 当上次起始页参数与当前起始页参 数相同时, 只需通知客户端将上次起始页作为当前起始页即可, 无需发送当前起始页的任 何内容给客户端, 更加减小了客户端的下载量、 节约了客户端的流量。 通过监控当前起始 页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对当前起始页上的每个 超链接的可用状态进行修改, 使得可以对起始页进行动态更新。 通过缓存当前起始页上的 每个超链接的首页, 使得可以将缓存的相应的超链接的首页返回给请求访问当前起始页上 的该超链接的客户端, 可以加快首页展示给用户的速度。 当将本地缓存的与请求对应的超 链接的首页返回给客户端之后, 实时获取与该请求对应的超链接的当前首页, 用获取的当 前首页替换本地缓存的首页, 可以确保首页的内容的准确性。 按照预设的时间间隔, 对缓 存的当前起始页上的每个超链接的首页进行更新, 可以确保首页的内容的时效性。 实施例 3
参见图 4, 本发明实施例提供了一种获取起始页的装置, 该装置包括:
获取模块 401,用于获取客户端的上次起始页对应的上次起始页参数和当前起始页对应 的当前起始页参数;
比较模块 402,用于将获取模块 401获取的上次起始页参数与获取模块 401获取的当前 起始页参数进行比较;
第一当前起始页获取模块 403,用于当比较模块 403的比较结果是上次起始页参数与当 前起始页参数不相同时, 将当前起始页与上次起始页相比发生变化的内容发送给客户端, 使得客户端根据发生变化的内容对上次起始页进行更新得到当前起始页。
进一步地, 参见图 5, 该装置还包括:
第二当前起始页获取模块 404,用于当比较模块 402的比较结果是上次起始页参数与当
前起始页参数相同时, 通知客户端将上次起始页作为当前起始页。
进一步地, 参见图 6, 该装置还包括:
监控模块 405, 用于监控当前起始页上的每个超链接的可用性, 并根据监控到的每个超 链接的可用性对当前起始页上的每个超链接的可用状态进行修改。
进一步地, 参见图 7, 该装置还包括:
首页获取缓存模块 406,用于预先从第三方网站获取并缓存当前起始页上的每个超链接 的首页;
第一首页处理模块 407, 用于接收客户端发送的访问当前起始页上的超链接的请求, 将 本地缓存的与该请求对应的超链接的首页返回给客户端。
进一步地, 参见图 8, 该装置还包括:
第二首页处理模块 408,用于当第一首页处理模块 407将本地缓存的与该请求对应的超 链接的首页返回给客户端后, 从第三方网站获取与该请求对应的超链接的当前首页, 用获 取的当前首页替换本地缓存的首页。
进一步地, 参见图 9, 该装置还包括:
更新模块 409, 用于按照预设的时间间隔, 从第三方网站获取当前起始页上的每个超链 接的首页, 用获取的当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每 个超链接的首页。
进一步地, 获取模块 401具体包括:
起始页更新请求获取单元, 用于接收客户端发送的起始页更新请求, 起始页更新请求 中包括客户端的上次起始页对应的上次起始页参数;
当前起始页获取单元, 用于在起始页更新请求获取单元获取到客户端发送的起始页更 新请求后, 获取所述客户端的当前起始页, 并计算得到所述当前起始页对应的当前起始页 参数。
本发明实施例所述的获取起始页的装置, 当上次起始页参数与当前起始页参数不相同 时, 只需将当前起始页与上次起始页相比发生变化的内容发送给客户端, 客户端根据发生 变化的内容对上次起始页进行更新即可得到当前起始页, 无需将整个当前起始页发送给客 户端, 减小了客户端的下载量、 节约了客户端的流量。 当上次起始页参数与当前起始页参 数相同时, 只需通知客户端将上次起始页作为当前起始页即可, 无需发送当前起始页的任 何内容给客户端, 更加减小了客户端的下载量、 节约了客户端的流量。 通过监控当前起始 页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对当前起始页上的每个 超链接的可用状态进行修改, 使得可以对起始页进行动态更新。 通过缓存当前起始页上的
每个超链接的首页, 使得可以将缓存的相应的超链接的首页返回给请求访问当前起始页上 的该超链接的客户端, 可以加快首页展示给用户的速度。 当将本地缓存的与请求对应的超 链接的首页返回给客户端之后, 实时获取与该请求对应的超链接的当前首页, 用获取的当 前首页替换本地缓存的首页, 可以确保首页的内容的准确性。 按照预设的时间间隔, 对缓 存的当前起始页上的每个超链接的首页进行更新, 可以确保首页的内容的时效性。 实施例 4
参见图 10, 本发明实施例提供了一种获取起始页的***, 该***包括: 服务端 60。 服务端 60包括: 配置服务器 601 ;
配置服务器 601,用于获取客户端的上次起始页对应的上次起始页参数和当前起始页对 应的当前起始页参数; 将上次起始页参数与当前起始页参数进行比较; 当上次起始页参数 与当前起始页参数不相同时, 将当前起始页与上次起始页相比发生变化的内容发送给客户 端, 使得客户端根据发生变化的内容对上次起始页进行更新得到当前起始页。
进一步地, 配置服务器 601, 还用于当上次起始页参数与当前起始页参数相同时, 通知 客户端将上次起始页作为当前起始页。
进一步地, 参见图 11, 服务端 60还包括:
网页地址监控服务器 602, 用于监控当前起始页上的每个超链接的可用性, 并根据监控 到的每个超链接的可用性对当前起始页上的每个超链接的可用状态进行修改。
进一步地, 参见图 12, 服务端 60还包括:
起始页服务器 603,用于预先从第三方网站获取并缓存当前起始页上的每个超链接的首 页, 并按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链 接的首页; 接收客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所述请 求对应的超链接的首页返回给客户端, 从第三方网站获取与所述请求对应的超链接的当前 首页, 用获取的当前首页替换本地缓存的首页。
进一步地, 参见图 13, 该***还包括: 客户端 50;
客户端 50, 用于发送起始页更新请求, 起始页更新请求中包括客户端 50的上次起始页 对应的上次起始页参数;
相应地,
配置服务器 601 获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的 当前起始页参数具体为: 接收客户端发送的起始页更新请求, 起始页更新请求中包括客户
端的上次起始页对应的上次起始页参数; 获取客户端的当前起始页, 并计算得到当前起始 页对应的当前起始页参数。
本发明实施例所述的获取起始页的***, 当上次起始页参数与当前起始页参数不相同 时, 只需将当前起始页与上次起始页相比发生变化的内容发送给客户端, 客户端根据发生 变化的内容对上次起始页进行更新即可得到当前起始页, 无需将整个当前起始页发送给客 户端, 减小了客户端的下载量、 节约了客户端的流量。 当上次起始页参数与当前起始页参 数相同时, 只需通知客户端将上次起始页作为当前起始页即可, 无需发送当前起始页的任 何内容给客户端, 更加减小了客户端的下载量、 节约了客户端的流量。 通过监控当前起始 页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对当前起始页上的每个 超链接的可用状态进行修改, 使得可以对起始页进行动态更新。 通过缓存当前起始页上的 每个超链接的首页, 使得可以将缓存的相应的超链接的首页返回给请求访问当前起始页上 的该超链接的客户端, 可以加快首页展示给用户的速度。 当将本地缓存的与请求对应的超 链接的首页返回给客户端之后, 实时获取与该请求对应的超链接的当前首页, 用获取的当 前首页替换本地缓存的首页, 可以确保首页的内容的准确性。 按照预设的时间间隔, 对缓 存的当前起始页上的每个超链接的首页进行更新, 可以确保首页的内容的时效性。 以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现, 其软件程序 存储在可读取的存储介质中, 存储介质例如: 计算机中的硬盘、 光盘或软盘。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
Claims
1、 一种获取起始页的方法, 其特征在于, 所述方法包括:
获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当前起始页参数; 将所述上次起始页参数与所述当前起始页参数进行比较;
如果所述上次起始页参数与所述当前起始页参数不相同, 则将所述当前起始页与所述上 次起始页相比发生变化的内容发送给所述客户端, 使得所述客户端根据发生变化的内容对所 述上次起始页进行更新得到所述当前起始页。
2、 根据权利要求 1所述的获取起始页的方法, 其特征在于, 所述方法还包括: 如果所述上次起始页参数与所述当前起始页参数相同, 则通知所述客户端将所述上次起 始页作为所述当前起始页。
3、 根据权利要求 1所述的获取起始页的方法, 其特征在于, 所述方法还包括: 监控所述当前起始页上的每个超链接的可用性, 并根据监控到的每个超链接的可用性对 所述当前起始页上的每个超链接的可用状态进行修改。
4、 根据权利要求 1所述的获取起始页的方法, 其特征在于, 所述方法还包括: 预先从第三方网站获取并缓存所述当前起始页上的每个超链接的首页;
接收所述客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所述请求对 应的超链接的首页返回给所述客户端。
5、 根据权利要求 4所述的获取起始页的方法, 其特征在于, 所述将本地缓存的与所述请 求对应的超链接的首页返回给所述客户端之后还包括:
从第三方网站获取与所述请求对应的超链接的当前首页, 用获取的当前首页替换本地缓 存的首页。
6、 根据权利要求 4所述的获取起始页的方法, 其特征在于, 所述方法还包括: 按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用获 取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链接的首 页。
7、 根据权利要求 1-6中任一权利要求所述的获取起始页的方法, 其特征在于, 所述获取 客户端的上次起始页对应的上次起始页参数和当前起始页对应的当前起始页参数具体包括: 接收客户端发送的起始页更新请求, 所述起始页更新请求中包括客户端的上次起始页对 应的上次起始页参数;
获取所述客户端的当前起始页, 并计算得到所述当前起始页对应的当前起始页参数。
8、 一种获取起始页的装置, 其特征在于, 所述装置包括:
获取模块, 用于获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当 前起始页参数;
比较模块, 用于将所述获取模块获取的上次起始页参数与所述获取模块获取的当前起始 页参数进行比较;
第一当前起始页获取模块, 用于当所述比较模块的比较结果是所述上次起始页参数与所 述当前起始页参数不相同时, 将所述当前起始页与所述上次起始页相比发生变化的内容发送 给所述客户端, 使得所述客户端根据发生变化的内容对所述上次起始页进行更新得到所述当 前起始页。
9、 根据权利要求 8所述的获取起始页的装置, 其特征在于, 所述装置还包括: 第二当前起始页获取模块, 用于当所述比较模块的比较结果是所述上次起始页参数与所 述当前起始页参数相同时, 通知所述客户端将所述上次起始页作为所述当前起始页。
10、 根据权利要求 8所述的获取起始页的装置, 其特征在于, 所述装置还包括: 监控模块, 用于监控所述当前起始页上的每个超链接的可用性, 并根据监控到的每个超 链接的可用性对所述当前起始页上的每个超链接的可用状态进行修改。
11、 根据权利要求 8所述的获取起始页的装置, 其特征在于, 所述装置还包括: 首页获取缓存模块, 用于预先从第三方网站获取并缓存所述当前起始页上的每个超链接 的首页;
第一首页处理模块, 用于接收所述客户端发送的访问当前起始页上的超链接的请求, 将 本地缓存的与所述请求对应的超链接的首页返回给所述客户端。
12、 根据权利要求 11所述的获取起始页的装置, 其特征在于, 所述装置还包括: 第二首页处理模块, 用于当所述第一首页处理模块将本地缓存的与所述请求对应的超链 接的首页返回给所述客户端后, 从第三方网站获取与所述请求对应的超链接的当前首页, 用 获取的当前首页替换本地缓存的首页。
13、 根据权利要求 11所述的获取起始页的装置, 其特征在于, 所述装置还包括: 更新模块, 用于按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链 接的首页, 用获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的 每个超链接的首页。
14、 根据权利要求 8-13中任一权利要求所述的获取起始页的装置, 其特征在于, 所述获 取模块具体包括- 起始页更新请求获取单元, 用于接收客户端发送的起始页更新请求, 所述起始页更新请 求中包括客户端的上次起始页对应的上次起始页参数;
当前起始页获取单元, 用于在所述起始页更新请求获取单元获取到客户端发送的起始页 更新请求后, 获取所述客户端的当前起始页, 并计算得到所述当前起始页对应的当前起始页 参数。
15、 一种获取起始页的***, 其特征在于, 所述***包括: 服务端;
所述服务端包括: 配置服务器;
所述配置服务器, 用于获取客户端的上次起始页对应的上次起始页参数和当前起始页对 应的当前起始页参数; 将所述上次起始页参数与所述当前起始页参数进行比较; 当所述上次 起始页参数与所述当前起始页参数不相同时, 将所述当前起始页与所述上次起始页相比发生 变化的内容发送给所述客户端, 使得所述客户端根据发生变化的内容对所述上次起始页进行 更新得到所述当前起始页。
16、 根据权利要求 15所述的获取起始页的***, 其特征在于, 所述配置服务器, 还用于 当所述上次起始页参数与所述当前起始页参数相同时, 通知所述客户端将所述上次起始页作 为所述当前起始页。
17、 根据权利要求 15所述的获取起始页的***, 其特征在于, 所述服务端还包括: 网页地址监控服务器, 用于监控所述当前起始页上的每个超链接的可用性, 并根据监控 到的每个超链接的可用性对所述当前起始页上的每个超链接的可用状态进行修改。
18、 根据权利要求 15所述的获取起始页的***, 其特征在于, 所述服务端还包括: 起始页服务器, 用于预先从第三方网站获取并缓存所述当前起始页上的每个超链接的首 页, 并按照预设的时间间隔, 从第三方网站获取所述当前起始页上的每个超链接的首页, 用 获取的所述当前起始页上的每个超链接的首页替换本地缓存的当前起始页上的每个超链接的 首页; 接收所述客户端发送的访问当前起始页上的超链接的请求, 将本地缓存的与所述请求 对应的超链接的首页返回给所述客户端, 从第三方网站获取与所述请求对应的超链接的当前 首页, 用获取的当前首页替换本地缓存的首页。
19、 根据权利要求 15-18 中任一权利要求所述的获取起始页的***, 其特征在于, 所述 ***还包括: 所述客户端;
所述客户端, 用于发送起始页更新请求, 所述起始页更新请求中包括所述客户端的上次 起始页对应的上次起始页参数;
相应地,
所述配置服务器获取客户端的上次起始页对应的上次起始页参数和当前起始页对应的当 前起始页参数具体为: 接收所述客户端发送的起始页更新请求, 所述起始页更新请求中包括 所述客户端的上次起始页对应的上次起始页参数; 获取所述客户端的当前起始页, 并计算得 到所述当前起始页对应的当前起始页参数。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/911,446 US20130268831A1 (en) | 2010-12-09 | 2013-06-06 | Method, device, and system for acquiring start page |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010591803.0 | 2010-12-09 | ||
CN2010105918030A CN102567339A (zh) | 2010-12-09 | 2010-12-09 | 一种获取起始页的方法、装置和*** |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/911,446 Continuation US20130268831A1 (en) | 2010-12-09 | 2013-06-06 | Method, device, and system for acquiring start page |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2012075961A1 true WO2012075961A1 (zh) | 2012-06-14 |
Family
ID=46206635
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/083739 WO2012075961A1 (zh) | 2010-12-09 | 2011-12-09 | 一种获取起始页的方法、装置和*** |
Country Status (3)
Country | Link |
---|---|
US (1) | US20130268831A1 (zh) |
CN (1) | CN102567339A (zh) |
WO (1) | WO2012075961A1 (zh) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006116203A1 (en) * | 2005-04-25 | 2006-11-02 | Network Appliance, Inc. | System and method for caching network file systems |
CN103714078A (zh) * | 2012-09-29 | 2014-04-09 | 百度在线网络技术(北京)有限公司 | 网页更新内容的提供方法、***及装置 |
CN102984574B (zh) * | 2012-10-31 | 2016-01-20 | 北京裕兴软件有限公司 | 嵌入式浏览器缓存管理方法及其*** |
CN103024013A (zh) * | 2012-12-03 | 2013-04-03 | 百度在线网络技术(北京)有限公司 | 差异化的传输方法、***和装置 |
CN104735112B (zh) * | 2013-12-23 | 2018-08-03 | 阿里巴巴集团控股有限公司 | 发送资源文件的方法、缓存资源文件的方法和装置 |
CN104133852B (zh) * | 2014-07-04 | 2018-03-16 | 小米科技有限责任公司 | 网页访问方法、装置、服务器及终端 |
CN104267989A (zh) * | 2014-09-26 | 2015-01-07 | 可牛网络技术(北京)有限公司 | 一种浏览器首页更新方法及装置 |
CN105512281A (zh) * | 2015-12-07 | 2016-04-20 | 北京奇虎科技有限公司 | 官网类搜索结果页的展现方法及装置 |
CN105574097B (zh) * | 2015-12-11 | 2019-05-28 | 北京奇虎科技有限公司 | 视频下载类搜索结果页的加载方法及装置 |
CN106980628A (zh) * | 2016-01-18 | 2017-07-25 | 中兴通讯股份有限公司 | 一种优化大数据传输的方法、装置及相关设备 |
CN113228596B (zh) * | 2018-12-04 | 2024-04-02 | 香港星辰科技有限公司 | 传输列表信息的方法和装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003162472A (ja) * | 2001-11-28 | 2003-06-06 | Hitachi Information Systems Ltd | ウェブページ閲覧方法およびウェブページ閲覧システムのクライアント並びにウェブページ閲覧プログラム |
CN1447259A (zh) * | 2002-03-22 | 2003-10-08 | 英业达集团(南京)电子技术有限公司 | 可令移动通讯设备快速浏览网络特定服务的方法 |
CN1987851A (zh) * | 2005-12-22 | 2007-06-27 | 腾讯科技(深圳)有限公司 | 一种网页数据的更新显示方法 |
CN101075236A (zh) * | 2006-06-12 | 2007-11-21 | 腾讯科技(深圳)有限公司 | 一种加快浏览器网页显示的装置和方法 |
CN101370100A (zh) * | 2007-08-15 | 2009-02-18 | 上海未来宽带技术及应用工程研究中心有限公司 | 一种实现电子节目指南快速浏览的方法 |
CN101883168A (zh) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | 一种在手机客户端高效管理缓存文件的方法 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7194531B2 (en) * | 2002-12-02 | 2007-03-20 | International Business Machines Corporation | System and method for determining the availability of a web page |
GB0321674D0 (en) * | 2003-09-16 | 2003-10-15 | Cognima Ltd | Catching content on phones |
US7823071B2 (en) * | 2004-02-20 | 2010-10-26 | Microsoft Corporation | User interface start page |
US20090234814A1 (en) * | 2006-12-12 | 2009-09-17 | Marco Boerries | Configuring a search engine results page with environment-specific information |
CN100535901C (zh) * | 2006-12-29 | 2009-09-02 | 腾讯科技(深圳)有限公司 | 一种更新动态网页的方法及*** |
CN101488135B (zh) * | 2008-01-14 | 2012-07-04 | 盛大计算机(上海)有限公司 | 延后个性化网页的设计和获取方法 |
CN101764840A (zh) * | 2009-12-29 | 2010-06-30 | 金蝶软件(中国)有限公司 | Web页面数据的提供方法、web服务器及web应用*** |
CN101894136B (zh) * | 2010-06-13 | 2016-03-16 | 优视科技有限公司 | 基于移动终端的页面刷新处理方法及其*** |
-
2010
- 2010-12-09 CN CN2010105918030A patent/CN102567339A/zh active Pending
-
2011
- 2011-12-09 WO PCT/CN2011/083739 patent/WO2012075961A1/zh active Application Filing
-
2013
- 2013-06-06 US US13/911,446 patent/US20130268831A1/en not_active Abandoned
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003162472A (ja) * | 2001-11-28 | 2003-06-06 | Hitachi Information Systems Ltd | ウェブページ閲覧方法およびウェブページ閲覧システムのクライアント並びにウェブページ閲覧プログラム |
CN1447259A (zh) * | 2002-03-22 | 2003-10-08 | 英业达集团(南京)电子技术有限公司 | 可令移动通讯设备快速浏览网络特定服务的方法 |
CN1987851A (zh) * | 2005-12-22 | 2007-06-27 | 腾讯科技(深圳)有限公司 | 一种网页数据的更新显示方法 |
CN101075236A (zh) * | 2006-06-12 | 2007-11-21 | 腾讯科技(深圳)有限公司 | 一种加快浏览器网页显示的装置和方法 |
CN101370100A (zh) * | 2007-08-15 | 2009-02-18 | 上海未来宽带技术及应用工程研究中心有限公司 | 一种实现电子节目指南快速浏览的方法 |
CN101883168A (zh) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | 一种在手机客户端高效管理缓存文件的方法 |
Also Published As
Publication number | Publication date |
---|---|
US20130268831A1 (en) | 2013-10-10 |
CN102567339A (zh) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2012075961A1 (zh) | 一种获取起始页的方法、装置和*** | |
JP6410280B2 (ja) | ウェブサイト・アクセス方法、装置、およびウェブサイト・システム | |
JP6091579B2 (ja) | ウェブページのネストしたフラグメントキャッシングを処理する方法および装置 | |
CN102663062B (zh) | 一种处理搜索结果中无效链接的方法及装置 | |
CN105095226B (zh) | 网页资源加载方法及装置 | |
US8725849B1 (en) | Browser cache pre-population | |
EP2985705A2 (en) | Webpage access method and apparatus, and router | |
US9588854B2 (en) | Systems and methods for a secondary website with mirrored content for automatic failover | |
EP3022708B1 (en) | Content source discovery | |
US20110208850A1 (en) | Systems for and methods of web privacy protection | |
KR20090073199A (ko) | 웹 기반 애플리케이션의 오프라인 실행 | |
US8676880B2 (en) | Server apparatus, communication apparatus, and method for generating navigation information | |
CN103139279A (zh) | 文件访问方法和*** | |
RU2015156798A (ru) | Система и способ пуша (push) рекламы, основанные на домашнем шлюзе | |
CN106250454A (zh) | 一种页面脚本的加载方法及装置 | |
JP4756001B2 (ja) | 情報提供装置、適正判定情報生成方法及び適正判定情報生成処理プログラム | |
CN103678295B (zh) | 一种向用户提供文件的方法及装置 | |
CN105279156B (zh) | 网络信息通信方法及网络信息浏览装置 | |
CN102681996B (zh) | 预读方法和装置 | |
WO2012159360A1 (zh) | 网页预取的方法及装置 | |
WO2015154270A1 (zh) | 一种信息搜索的方法以及装置 | |
CN104933045A (zh) | 网络信息浏览方法及网络信息浏览装置 | |
JP2006246421A (ja) | 情報提供制御装置、移動機、情報提供システム、及び、情報提供方法 | |
JP6782219B2 (ja) | データ活用支援装置、データ活用支援システム、及びデータ活用支援方法 | |
KR101076713B1 (ko) | 브라우저를 탑재한 단말기 및 그 인터넷 접속 방법, 및 브라우저를 탑재한 단말기용 무선 인터넷 지원 시스템 및 그 지원 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11847125 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/10/2013) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11847125 Country of ref document: EP Kind code of ref document: A1 |