WO2012171391A1 - Procédé d'optimisation de l'accès à des ressources de réseau, navigateur internet et terminal - Google Patents

Procédé d'optimisation de l'accès à des ressources de réseau, navigateur internet et terminal Download PDF

Info

Publication number
WO2012171391A1
WO2012171391A1 PCT/CN2012/073216 CN2012073216W WO2012171391A1 WO 2012171391 A1 WO2012171391 A1 WO 2012171391A1 CN 2012073216 W CN2012073216 W CN 2012073216W WO 2012171391 A1 WO2012171391 A1 WO 2012171391A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
path
outer chain
request
web browser
Prior art date
Application number
PCT/CN2012/073216
Other languages
English (en)
Chinese (zh)
Inventor
刘军
路芳芳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012171391A1 publication Critical patent/WO2012171391A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Definitions

  • the present invention relates to the field of software applications, and in particular, to an optimization method for accessing network resources, a web browser and a terminal. Background technique
  • HTML pages based on Hyper Text Mark-up Language (HTML) encoded files.
  • HTML pages a large number of external links are used, such as: script files (such as JavaScript). File), Cascading Style Sheet (CSS) files, image files (such as bitmap images (BMP) files, Joint Photographic Experts Group (JPEG) files, image interchange formats (Graphics Interchange) Format, GIF) files, Portable Network Graphic Format (PNG) files, and more.
  • script files such as JavaScript). File
  • Cascading Style Sheet (CSS) files image files (such as bitmap images (BMP) files, Joint Photographic Experts Group (JPEG) files, image interchange formats (Graphics Interchange) Format, GIF) files, Portable Network Graphic Format (PNG) files, and more.
  • BMP bitmap images
  • JPEG Joint Photographic Experts Group
  • GIF Portable Network Graphic Format
  • PNG Portable Network Graphic Format
  • Path 1 htt ://127.0.0.1 /home/webserver/, ./test.jpg;
  • Path 2 htt ://127.0.0.1 /home/httpserver/../test.jpg;
  • path 2 is actually pointing to the test.jpg file in the server home directory, for the terminal, the absolute path of the file is:
  • the technical problem to be solved by the embodiments of the present invention is to provide an optimization method for accessing network resources.
  • the web browser and the terminal are used to avoid multiple requests for access to the service server for the external link files with different paths, thereby saving the network resources and the resources of the device itself.
  • an embodiment of the present invention provides an optimization method for accessing network resources, including:
  • the foregoing method further has the following features: after the request for the access to the external link file is initiated, the method further includes:
  • the file data corresponding to the outer chain file is downloaded, and the correspondence between the absolute path and the downloaded file data is saved.
  • the step of parsing the absolute path of the outer chain file in the service server from the path URL in the page of the outer chain file includes:
  • the above method also has the following features:
  • the outer chain file includes one or more of a script file, a cascading style sheet file, and an image file.
  • the present invention further provides a web browser, including:
  • a parsing module configured to: after receiving the request for accessing the outer chain file, parsing the absolute path of the outer chain file in the service server from the path uniform resource locator (URL) of the outer chain file in the page ; as well as
  • the access processing module is configured to: detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the outer chain file; if not, initiate the request for accessing the outer chain file.
  • the above web browser also has the following features:
  • a downloading module configured to: after the access processing module initiates the request for accessing the outer chain file, download the file data corresponding to the outer chain file.
  • the above web browser also has the following features:
  • a cache module configured to: save a correspondence between the absolute path and file data downloaded by the download module.
  • the above web browser also has the following features:
  • the parsing module is configured to: after receiving the request for accessing the outer chain file, determine whether the path URL includes a file path symbol, and if not, use the path URL as an absolute of the outer chain file in the service server. a path; if yes, performing a simplified process according to the meaning of the file path symbol to obtain an absolute path of the outer chain file in the service server.
  • the above web browser also has the following features:
  • the outer chain file includes one or more of a script file, a cascading style sheet file, and an image file.
  • the present invention also provides a terminal, including the above web browser.
  • the embodiments of the present invention provide an optimization method for accessing network resources, a web browser, and a terminal, which can correctly access external file files, and can implement an external file path screening process, and the same external chain file has different paths. You can avoid requesting access to the service server multiple times, so as to save network resources and resources of the device itself.
  • FIG. 1 is a schematic diagram of a web browser according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an optimization method for accessing network resources according to an embodiment of the present invention. Preferred embodiment of the invention
  • FIG. 1 is a schematic diagram of a web browser according to an embodiment of the present invention. As shown in FIG. 1, the web browser of this embodiment includes:
  • the parsing module is configured to parse the absolute path of the outer chain file in the service server from the path URL in the page of the outer chain file after receiving the request for accessing the outer chain file;
  • the access processing module is configured to detect whether the file data corresponding to the absolute path is cached, and if yes, cancel the request for accessing the outer chain file; if not, initiate the request for accessing the outer chain file.
  • the parsing module is configured to: after receiving the request for accessing the outer chain file, determine whether the path URL includes a file path symbol, and if not, use the path URL as the outer chain file in the service server. Absolute path; if yes, the simplified process is performed according to the meaning of the file path symbol to obtain an absolute path of the outer chain file in the service server.
  • the web browser may further include:
  • the downloading module is configured to download the file data corresponding to the outer chain file after the access processing module initiates the request for accessing the outer chain file.
  • the cache module is configured to save a correspondence between the absolute path and the file data downloaded by the download module.
  • the outer chain file includes one or more of a script file, a cascading style sheet file, and an image file.
  • the invention also provides a terminal comprising the above web browser.
  • FIG. 2 is a flowchart of an optimization method for accessing network resources according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • the absolute path of the outer chain file in the service server is parsed in the URL
  • the method in this embodiment can avoid the problem of wasting resources by initiating multiple requests to the service server for the external link file with multipath in the web page.
  • the embodiment of the present invention recalculates the path URL of the web browser for parsing the outer chain file in the page, for example, simplifying calculation of path symbols such as "../”, “./”, “//” in the path URL, and calculating The result is an absolute path that does not contain external links such as "../”, “./”, “//”, etc., so that the web browser can detect the data related to the external link file.
  • the file caching function is introduced on the terminal side of the web browser, and the data of the external chain file that has been accessed is saved, and the mapping relationship between the outer chain file data and the absolute path of the outer chain file is also saved.
  • FIG. 3 is a flowchart of an optimization method for accessing network resources according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 301 The web browser receives a request for accessing an external link file.
  • Step 302 The web browser parses the web page, and parses the absolute path from the path URL specified by the outer chain file in the page;
  • the web browser parses the path URL defined by the outer chain file in the page, it is determined whether the path URL has a file path symbol, such as "../” "./” "//”, etc., if none of the above If the path symbol does not need to be simplified, the path URL is directly returned. If the path contains the path symbol, the path is simplified according to the meaning of the symbol.
  • the processed path URL is the absolute path of the external link file in the service server. .
  • Step 303 the web browser detects whether the file data corresponding to the absolute path has been cached, if the cache has passed, then proceeds to step 304; if there is no cache, then proceeds to step 305;
  • Step 304 directly use the cached related file data
  • Step 305 Download related file data, cache the file data after the download is completed, and save the correspondence between the absolute path of the file and the file data for subsequent query.
  • the embodiments of the present invention provide an optimization method for accessing network resources, a web browser, and a terminal, which can correctly access external file files, and can implement an external file path screening process, and the same external chain file can be avoided even if different paths are used.
  • the service server requests access multiple times, thereby saving network resources and resources of the device itself.

Landscapes

  • Engineering & Computer Science (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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne un procédé d'optimisation de l'accès à des ressources de réseau, un navigateur Internet et un terminal. Le procédé consiste à : après réception d'une requête pour accéder à un fichier en chaîne, analyser un localisateur de ressources uniformes (URL) de trajet du fichier en chaine dans une page pour obtenir un trajet absolu du fichier en chaîne dans un serveur de service ; détecter si des données de fichier correspondant au trajet absolu sont ou non mises en tampon ; si oui, annuler la requête pour accéder au fichier en chaîne ; et si non, initier la requête pour accéder au fichier en chaîne. La présente invention non seulement peut accéder de manière correcte à un fichier en chaîne mais peut également traiter de manière discriminatoire des fichiers en chaîne, c'est-à-dire, pour le même fichier en chaîne, même si les trajets sont différents, de multiples requêtes pour accéder au serveur de fichier peuvent être évitées, permettant ainsi d'atteindre l'objectif d'économie de ressources de réseau et de ressources d'appareil.
PCT/CN2012/073216 2011-06-15 2012-03-29 Procédé d'optimisation de l'accès à des ressources de réseau, navigateur internet et terminal WO2012171391A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101606547A CN102214224A (zh) 2011-06-15 2011-06-15 一种访问网络资源的优化方法、网页浏览器和终端
CN201110160654.7 2011-06-15

Publications (1)

Publication Number Publication Date
WO2012171391A1 true WO2012171391A1 (fr) 2012-12-20

Family

ID=44745532

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073216 WO2012171391A1 (fr) 2011-06-15 2012-03-29 Procédé d'optimisation de l'accès à des ressources de réseau, navigateur internet et terminal

Country Status (2)

Country Link
CN (1) CN102214224A (fr)
WO (1) WO2012171391A1 (fr)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081633A (zh) * 2009-11-27 2011-06-01 阿里巴巴集团控股有限公司 一种JavaScript文件的管理方法、装置和系统
CN102214224A (zh) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 一种访问网络资源的优化方法、网页浏览器和终端
CN103294718A (zh) * 2012-02-29 2013-09-11 腾讯科技(深圳)有限公司 网页缓存管理方法和装置
CN103795690B (zh) * 2012-10-31 2017-08-11 华为技术有限公司 一种云访问控制的方法、代理服务器和系统
CN103391285B (zh) * 2013-07-03 2016-12-28 杭州华三通信技术有限公司 一种Web访问优化的装置和方法
CN104348803B (zh) * 2013-07-31 2018-12-11 深圳市腾讯计算机系统有限公司 链路劫持检测方法、装置、用户设备、分析服务器及系统
CN103763340B (zh) * 2013-12-24 2017-07-04 新华三技术有限公司 一种Web访问优化的装置和方法
CN107239475B (zh) * 2016-03-29 2020-09-18 阿里巴巴集团控股有限公司 一种调用文件方法及装置
CN107704464B (zh) * 2016-08-08 2021-05-07 北京国双科技有限公司 解析静态资源的路径的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1552024A (zh) * 2001-08-03 2004-12-01 ��˹��ŵ�� 具有分布式高速缓存的数据网络所用的方法、系统和终端
CN1960512A (zh) * 2005-11-03 2007-05-09 乐金电子(中国)研究开发中心有限公司 移动通信终端的超文本数据缓存方法及其移动通信终端
CN101719936A (zh) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 提供文件下载服务的方法、装置及缓存系统
CN102214224A (zh) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 一种访问网络资源的优化方法、网页浏览器和终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1552024A (zh) * 2001-08-03 2004-12-01 ��˹��ŵ�� 具有分布式高速缓存的数据网络所用的方法、系统和终端
CN1960512A (zh) * 2005-11-03 2007-05-09 乐金电子(中国)研究开发中心有限公司 移动通信终端的超文本数据缓存方法及其移动通信终端
CN101719936A (zh) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 提供文件下载服务的方法、装置及缓存系统
CN102214224A (zh) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 一种访问网络资源的优化方法、网页浏览器和终端

Also Published As

Publication number Publication date
CN102214224A (zh) 2011-10-12

Similar Documents

Publication Publication Date Title
WO2012171391A1 (fr) Procédé d'optimisation de l'accès à des ressources de réseau, navigateur internet et terminal
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
JP6173546B2 (ja) リダイレクトの低減
WO2016173200A1 (fr) Procédé et système de détection de site web malveillant
US9407727B1 (en) Optimizing communications using client-side reconstruction scripting
WO2012155849A1 (fr) Procédé de consultation de page web, serveur proxy et système de consultation de page web
WO2018001124A1 (fr) Procédé d'envoi de fichier de page web, procédé et appareil de rendu de page web, et système de rendu de page web
CN108416021B (zh) 一种浏览器网页内容处理方法、装置、电子设备及可读介质
US8019884B2 (en) Proxy content for submitting web service data in the user's security context
CA2861602A1 (fr) Procedes pour transformer des demandes de contenu web et dispositifs associes
US20120117270A1 (en) Methods for reducing latency in network connections using automatic redirects and systems thereof
WO2010051766A1 (fr) Procédé et dispositif pour acquérir des informations de ressources cibles
US9727643B2 (en) Managing loading of web pages
CN113330432A (zh) 搜索结果中列出的内容的异步预测性缓存
US20070124667A1 (en) Verifying content of resources in markup language documents
WO2015154270A1 (fr) Procédé et dispositif de recherche d'informations
KR101046446B1 (ko) 웹페이지 로딩 방법 및 시스템
US20130080499A1 (en) Communication apparatus, communication method, and computer program product
WO2011157183A2 (fr) Procédé et système de recherche pour accueil d'application web
KR100925644B1 (ko) 오브젝트 전송 시스템 및 그 제어방법
WO2008011314A2 (fr) Url conditionnel destiné à des dispositifs informatiques
Ahmed Transcoding web pages for energy saving on the client-side
JP2014229119A (ja) Web閲覧履歴解析システムとそのWeb閲覧状態再現方法
JP2014505278A (ja) クライアントサイドデータの格納
KR20060082184A (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: 12800773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12800773

Country of ref document: EP

Kind code of ref document: A1