Nothing Special   »   [go: up one dir, main page]

CN108989362A - A kind for the treatment of method and apparatus of static resource - Google Patents

A kind for the treatment of method and apparatus of static resource Download PDF

Info

Publication number
CN108989362A
CN108989362A CN201710398248.1A CN201710398248A CN108989362A CN 108989362 A CN108989362 A CN 108989362A CN 201710398248 A CN201710398248 A CN 201710398248A CN 108989362 A CN108989362 A CN 108989362A
Authority
CN
China
Prior art keywords
static
page
file
static file
visited
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710398248.1A
Other languages
Chinese (zh)
Inventor
罗劲松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710398248.1A priority Critical patent/CN108989362A/en
Publication of CN108989362A publication Critical patent/CN108989362A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the treating method and apparatus of static resource, are related to field of computer technology.One specific embodiment of this method includes: the static file for receiving the page to be visited;The static file is stored to cloud storage service device, the access address of the page to be visited is generated;The access request for the page to be visited that user sends is received, the accessing page request includes the access address;The static file is obtained into the cloud storage service device according to the accessing page request, and shows the corresponding page of the static file to the user.The embodiment can be realized the quick deployment and access of all Web static resources inside Internet company, effectively save and reduce the software overhead and maintenance cost of other Web middlewares.

Description

A kind for the treatment of method and apparatus of static resource
Technical field
The present invention relates to field of computer technology more particularly to a kind for the treatment of method and apparatus of static resource.
Background technique
As internet is greatly popular, more and more Web static state Html webpages are applied to advertising, activity, new News, amusement, video, electric business shopping, smart machine control etc..Why user is able to access that these Web static Web pages, be because There are the server in machine room on backstage and the support of middleware.
In order to realize static Web page (resource) by outside access and display, the prior art is to utilize Ftp by operation maintenance personnel Etc. uploading tools class software, by the file of static Web page (resource) be uploaded to server some static resource middlewares (for example, Tomcat, Apache etc.) where specified directory in, so as to make external user pass through these static networks of Http protocol access Page (resource).
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
It is participated in currently available technology in the presence of upload static Web page (resource) enormous amount and palpus operation maintenance personnel Problem causes transfer efficiency lower and defect not in time.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind for the treatment of method and apparatus of static resource, internet can be realized The quick deployment and access of all Web static resources of intra-company, effectively save and reduce the software expense of other Web middlewares With and maintenance cost.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of processing side of static resource is provided Method, this method comprises:
Receive the static file of the page to be visited;
The static file is stored to cloud storage service device, the access address of the page to be visited is generated;
The access request for the page to be visited that user sends is received, the accessing page request includes the access Location;
The static file is obtained into the cloud storage service device according to the accessing page request, and to the user Show the corresponding page of the static file.
Optionally, before the static file for receiving the page to be visited further include: the static file is carried out packing pressure Contracting.
Optionally, it stores by the static file to cloud storage service device, generates the access of the page to be visited In the step of location, comprising: generate the outer chain address that the static file is stored in the cloud storage service device, and by the exterior chain Address caching is into Redis.
Optionally, this method further include: receive the access request that the user sends using Nginx server, really The static file that whether there is the page to be visited is recognized in the Nginx server, if in the Nginx server There are the static files, then show the corresponding page of the static file to the user.
Optionally, this method further include: the page to be visited is not found to the configuration file setting of the Nginx server The navigation information of the access request of the static file in face.
Optionally, this method further include: if the static file is not present in the Nginx server, from described The outer chain address that the static file is obtained in Redis obtains in the cloud storage service device according to the outer chain address The static file, and the static file is saved into the access catalogue into the Nginx server, then will redirected The access request be sent to Nginx server, show the corresponding page of the static file to the user.
Other side according to an embodiment of the present invention provides a kind of processing unit of static resource, which includes:
File reception module, for receiving the static file of the page to be visited;
File storage module generates the page to be visited for storing the static file to cloud storage service device Access address;
Request receiving module, the access request of the page to be visited for receiving user's transmission, the page access Request includes the access address;
Source obtaining module, for obtaining the static state into the cloud storage service device according to the accessing page request File, and the corresponding page of the static file is shown to the user.
Optionally, the device further include: compressing file module, for the static file to be carried out packing compression.
Optionally, the file storage module is also used to: being generated the static file and is stored in the cloud storage service device Outer chain address, and by the exterior chain address caching into Redis.
Optionally, the request receiving module is also used to: receiving the visit that the user sends using Nginx server It asks request, the static file that whether there is the page to be visited in the Nginx server is confirmed, if described There are the static files in Nginx server, then show the static text to the user using the source obtaining module The corresponding page of part.
Optionally, the request receiving module further include: guide arrangement module, for matching to the Nginx server It sets file and the navigation information for not finding the access request of the static file of the page to be visited is set.
Optionally, the request receiving module is also used to: if there is no the static texts in the Nginx server Part then obtains the outer chain address of the static file from the Redis, obtains the cloud according to the outer chain address and deposits The static file in server is stored up, and the static file is saved into the access catalogue into the Nginx server, so The access request of redirection is sent to Nginx server afterwards, shows the corresponding page of the static file to the user Face.
Other side according to an embodiment of the present invention provides a kind of terminal device for handling static resource, the terminal Equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the processing method such as static resource provided in an embodiment of the present invention.
Other side according to an embodiment of the present invention provides a kind of computer-readable medium, is stored thereon with calculating Machine program, which is characterized in that the place such as static resource provided in an embodiment of the present invention is realized when described program is executed by processor Reason method.
The treating method and apparatus of the static resource provided through the invention is packaged pressure because developing to Web static resource The progress of contracting file is centrally stored, to support the multiple spot download access of multiple application servers.In addition, powerful using Nginx Http proxy requests processing capacity realizes the strongest high concurrent static state Html resource processing of performance, effectively realizes internet public affairs The quick deployment and access of the internal all Web static resources of department, effectively save and reduce the software overhead of other Web middlewares And maintenance cost.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.In the accompanying drawings:
Fig. 1 is the schematic diagram of the processing method main flow of static resource according to an embodiment of the present invention;
Fig. 2 is the detailed maps of the processing method of static resource according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of the processing unit of static resource according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the terminal device of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Illustrative methods
Fig. 1 is the flow diagram of the processing method of static resource according to an embodiment of the present invention.This method comprises:
Step S101: the static file of the page to be visited is received;
Step S102: the static file is stored to cloud storage service device, the access of the page to be visited is generated Location;
Step S103: receiving the access request for the page to be visited that user sends, and the accessing page request includes The access address;
Step S104: obtaining the static file into the cloud storage service device according to the accessing page request, and The corresponding page of the static file is shown to the user.
Optionally, before the static file for receiving the page to be visited, further includes: the static file is carried out packing pressure Contracting.
Optionally, it stores by the static file to cloud storage service device, generates the access of the page to be visited In the step of location, comprising: generate the outer chain address that the static file is stored in the cloud storage service device, and by the exterior chain Address caching is into Redis.
Optionally, this method further include: receive the access request that the user sends using Nginx server, really The static file that whether there is the page to be visited is recognized in the Nginx server, if in the Nginx server There are the static files, then show the corresponding page of the static file to the user.
Optionally, this method further include: the page to be visited is not found to the configuration file setting of the Nginx server The navigation information of the access request of the static file in face.
Optionally, this method further include: if the static file is not present in the Nginx server, from described The outer chain address that the static file is obtained in Redis obtains in the cloud storage service device according to the outer chain address The static file, and the static file is saved into the access catalogue into the Nginx server, then will redirected The access request be sent to Nginx server, show the corresponding page of the static file to the user.
Embodiment
The present invention is specifically described below with reference to the specific embodiment of a practical application scene, however is worth noting Be the specific embodiment merely to better describing the present invention, do not constitute improper limitations of the present invention.
Fig. 2 is the detailed maps of the processing method of static resource according to an embodiment of the present invention.
Firstly, the developer of Web static application, will be packaged into pressure in the static Html file (resource) that locally exploitation is completed Contracting file (for example, Zip, rar etc.), and the compressed file of static Html file is uploaded to cloud service platform.
Then, after cloud service platform receives the compressed file of upload, this compressed file (for example, Zip file) is collected In store into cloud storage service device, and will be obtained after storage these compressed files outer chain address (i.e. support http agreement visit Address in the computer room asked) it caches into Redis.At the same time, system can generate the access address of the compressed file of static Html (address URL), and the access address is back to the upload interface where developer, and pop-up preview shows that this static state Html is provided The source page.It is noted that the developer of Web static application can be outer by access address informing by modes such as advertisements Portion user.
When the user clicks when the access address accession page, the access request of the page can be sent to according to domain name addresses The cloud service platform that the embodiment of the present invention is realized, the Nginx proxy server through the cloud service platform front end access agency, Nginx proxy server can be according to the static resource of user's URL address search page to be visited.
If corresponding static text is not found under the setting catalogue corresponding with the address URL in Nginx proxy server Part (resource) can then obtain corresponding in the corresponding Redis caching of the access request according to the URL address information of the access request The outer chain address of the compressed file (Zip packet) of static file.It specifically, in an embodiment of the present invention, is by Nginx mesh What the configuration file under record conf/domains/ was configured, this is the file that Nginx software is configured to user of service, It can wherein configure and how handle and be oriented to when without discovery resource.
Then, the compressed file for obtaining corresponding static file is downloaded from cloud storage service device according to the outer chain address (Zip packet), and after the download is complete in the access catalogue in decompressing compressed file (Zip packet) to corresponding Nginx server.
Nginx proxy server is sent to finally, the access request for treating accession page that user sends is redirected. Since the static file (resource) of the page to be visited is already present in Nignx proxy server in corresponding access catalogue, just Static Html file can be returned into user by Nignx proxy server and browse access.
It (disposes), just completely realizes, Web static page resource when uploading Html Zip and access through both the above step The all processes finally accessed are uploaded to from being packaged.
Fig. 3 is the schematic diagram of the main modular of the processing unit of static resource according to an embodiment of the present invention.The device packet It includes:
File reception module 31, for receiving the static file of the page to be visited;
File storage module 32 generates the page to be visited for storing the static file to cloud storage service device The access address in face;
Request receiving module 33, the access request of the page to be visited for receiving user's transmission, the page are visited Ask that request includes the access address;
Source obtaining module 34, it is described quiet for being obtained according to the accessing page request into the cloud storage service device State file, and the corresponding page of the static file is shown to the user.
Optionally, the device further include: compressing file module, for the static file to be carried out packing compression.
Optionally, the file storage module is also used to: being generated the static file and is stored in the cloud storage service device Outer chain address, and by the exterior chain address caching into Redis.
Optionally, the request receiving module is also used to: receiving the visit that the user sends using Nginx server It asks request, the static file that whether there is the page to be visited in the Nginx server is confirmed, if described There are the static files in Nginx server, then show the static text to the user using the source obtaining module The corresponding page of part.
Optionally, the request receiving module further include: guide arrangement module, for matching to the Nginx server It sets file and the navigation information for not finding the access request of the static file of the page to be visited is set.
Optionally, the request receiving module is also used to: if there is no the static texts in the Nginx server Part then obtains the outer chain address of the static file from the Redis, obtains the cloud according to the outer chain address and deposits The static file in server is stored up, and the static file is saved into the access catalogue into the Nginx server, so The access request of redirection is sent to Nginx server afterwards, shows the corresponding page of the static file to the user Face.
Since the processing unit of static resource provided by the invention is the corresponding device of the above method, therefore, not repeat them here.
Fig. 4 is shown can be using the processing method of the static resource of the embodiment of the present invention or the processing unit of static resource Exemplary system architecture 300.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user Browse web sites the back-stage management server for providing and supporting.Back-stage management server can to receive web page interrogation request etc. Data carry out the processing such as analyzing, and processing result is fed back to terminal device.
It should be noted that the processing method of static resource provided by the embodiment of the present invention is generally held by server 405 Row, correspondingly, the processing unit of static resource is generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include file reception module 31, file storage module 32, request receiving module 33 and source obtaining module 34.Wherein, these modules Title do not constitute the restriction to the module itself under certain conditions.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:
Step S101: the static file of the page to be visited is received;
Step S102: the static file is stored to cloud storage service device, the access of the page to be visited is generated Location;
Step S103: receiving the access request for the page to be visited that user sends, and the accessing page request includes The access address;
Step S104: obtaining the static file into the cloud storage service device according to the accessing page request, and The corresponding page of the static file is shown to the user.
The treating method and apparatus of the static resource provided through the invention is packaged pressure because developing to Web static resource The progress of contracting file is centrally stored, to support the multiple spot download access of multiple application servers.In addition, powerful using Nginx Http proxy requests processing capacity realizes the strongest high concurrent static state Html resource processing of performance, effectively realizes internet public affairs The quick deployment and access of the internal all Web static resources of department, effectively save and reduce the software overhead of other Web middlewares And maintenance cost.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of processing method of static resource characterized by comprising
Receive the static file of the page to be visited;
The static file is stored to cloud storage service device, the access address of the page to be visited is generated;
The access request for the page to be visited that user sends is received, the accessing page request includes the access address;
The static file is obtained into the cloud storage service device according to the accessing page request, and is shown to the user The corresponding page of the static file.
2. processing method according to claim 1, which is characterized in that before the static file for receiving the page to be visited, Further include: the static file is subjected to packing compression.
3. processing method according to claim 1, which is characterized in that store by the static file to cloud storage service In the step of device, the access address of the generation page to be visited, comprising:
The outer chain address that the static file is stored in the cloud storage service device is generated, and extremely by the exterior chain address caching In Redis.
4. processing method according to claim 1, which is characterized in that further include:
The access request that the user sends is received using Nginx server, confirms whether deposit in the Nginx server In the static file of the page to be visited, if there are the static file in the Nginx server, to described User shows the corresponding page of the static file.
5. processing method according to claim 4, which is characterized in that further include:
The visit of the static file of the page to be visited is not found to the configuration file setting of the Nginx server Ask the navigation information of request.
6. processing method according to claim 5, which is characterized in that further include:
If the static file is not present in the Nginx server, the static file is obtained from the Redis The outer chain address obtains the static file in the cloud storage service device according to the outer chain address, and will be described quiet State file saves the access catalogue into the Nginx server, and the access request of redirection is then sent to Nginx Server shows the corresponding page of the static file to the user.
7. a kind of processing unit of static resource characterized by comprising
File reception module, for receiving the static file of the page to be visited;
File storage module generates the visit of the page to be visited for storing the static file to cloud storage service device Ask address;
Request receiving module, the access request of the page to be visited for receiving user's transmission, the accessing page request Including the access address;
Source obtaining module, for obtaining the static text into the cloud storage service device according to the accessing page request Part, and the corresponding page of the static file is shown to the user.
8. processing unit according to claim 7, which is characterized in that further include:
Compressing file module, for the static file to be carried out packing compression.
9. processing unit according to claim 7, which is characterized in that the file storage module is also used to:
The outer chain address that the static file is stored in the cloud storage service device is generated, and extremely by the exterior chain address caching In Redis.
10. processing unit according to claim 7, which is characterized in that the request receiving module is also used to:
The access request that the user sends is received using Nginx server, confirms whether deposit in the Nginx server In the static file of the page to be visited, if there are the static files in the Nginx server, institute is utilized It states source obtaining module and shows the corresponding page of the static file to the user.
11. processing unit according to claim 10, which is characterized in that the request receiving module further include:
Guide arrangement module does not find the institute of the page to be visited for the configuration file setting to the Nginx server State the navigation information of the access request of static file.
12. processing unit according to claim 11, which is characterized in that the request receiving module is also used to:
If the static file is not present in the Nginx server, the static file is obtained from the Redis The outer chain address obtains the static file in the cloud storage service device according to the outer chain address, and will be described quiet State file saves the access catalogue into the Nginx server, and the access request of redirection is then sent to Nginx Server shows the corresponding page of the static file to the user.
13. a kind of terminal device for handling static resource characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 6 is realized when row.
CN201710398248.1A 2017-05-31 2017-05-31 A kind for the treatment of method and apparatus of static resource Pending CN108989362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710398248.1A CN108989362A (en) 2017-05-31 2017-05-31 A kind for the treatment of method and apparatus of static resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710398248.1A CN108989362A (en) 2017-05-31 2017-05-31 A kind for the treatment of method and apparatus of static resource

Publications (1)

Publication Number Publication Date
CN108989362A true CN108989362A (en) 2018-12-11

Family

ID=64502213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710398248.1A Pending CN108989362A (en) 2017-05-31 2017-05-31 A kind for the treatment of method and apparatus of static resource

Country Status (1)

Country Link
CN (1) CN108989362A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110993033A (en) * 2019-11-14 2020-04-10 北京诺禾致源科技股份有限公司 Method, system and device for processing genome data
CN111580854A (en) * 2020-03-18 2020-08-25 平安科技(深圳)有限公司 Front-end and back-end separation method based on application program interface gateway and related equipment
CN111611514A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Page display method and device based on user login information and electronic equipment
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111767494A (en) * 2019-04-01 2020-10-13 广州精选速购网络科技有限公司 Commodity detail page linkage display method and system, electronic equipment and medium
CN111767486A (en) * 2019-09-24 2020-10-13 北京京东尚科信息技术有限公司 Method, device, electronic equipment and computer readable medium for displaying page
CN112306972A (en) * 2020-11-02 2021-02-02 西安博康硕达网络科技有限公司 File generation method and device based on cloud storage
CN112541146A (en) * 2019-09-20 2021-03-23 北京国双科技有限公司 Network access method, system, server, electronic device and storage medium
CN112565472A (en) * 2019-09-10 2021-03-26 北京京东尚科信息技术有限公司 Static resource processing method and device
CN112632427A (en) * 2020-12-25 2021-04-09 航天信息股份有限公司 Page static resource management system and method based on front-end agent
CN112732362A (en) * 2021-01-18 2021-04-30 北京展心展力信息科技有限公司 Transnational software resource access method and device, electronic equipment and storage medium
CN113032491A (en) * 2021-04-07 2021-06-25 工银科技有限公司 Method, device, electronic equipment and medium for realizing static data synchronization
CN113778503A (en) * 2020-10-13 2021-12-10 北京沃东天骏信息技术有限公司 Software maintenance method and device
CN113886739A (en) * 2021-09-29 2022-01-04 中孚信息股份有限公司 Information visualization method, system and device based on dynamic configuration of content
CN114861109A (en) * 2022-05-05 2022-08-05 北京达佳互联信息技术有限公司 Page file processing method, device and system, electronic equipment and storage medium
CN115242700A (en) * 2021-04-23 2022-10-25 网联清算有限公司 Communication transmission method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092581A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Method and device for setting up Web front-end local development environment
CN103927368A (en) * 2014-04-22 2014-07-16 浪潮软件股份有限公司 Method of lightweight framework for generating thermodynamic diagram according to streaming data concept
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN106598872A (en) * 2017-01-03 2017-04-26 百融(北京)金融信息服务股份有限公司 Application processing system and method for intelligent device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092581A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Method and device for setting up Web front-end local development environment
CN103927368A (en) * 2014-04-22 2014-07-16 浪潮软件股份有限公司 Method of lightweight framework for generating thermodynamic diagram according to streaming data concept
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN106598872A (en) * 2017-01-03 2017-04-26 百融(北京)金融信息服务股份有限公司 Application processing system and method for intelligent device

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767494A (en) * 2019-04-01 2020-10-13 广州精选速购网络科技有限公司 Commodity detail page linkage display method and system, electronic equipment and medium
CN112565472A (en) * 2019-09-10 2021-03-26 北京京东尚科信息技术有限公司 Static resource processing method and device
CN112565472B (en) * 2019-09-10 2024-05-17 北京京东尚科信息技术有限公司 Static resource processing method and device
CN112541146A (en) * 2019-09-20 2021-03-23 北京国双科技有限公司 Network access method, system, server, electronic device and storage medium
CN111767486B (en) * 2019-09-24 2024-10-22 北京京东尚科信息技术有限公司 Method, apparatus, electronic device and computer readable medium for displaying pages
CN111767486A (en) * 2019-09-24 2020-10-13 北京京东尚科信息技术有限公司 Method, device, electronic equipment and computer readable medium for displaying page
CN110993033A (en) * 2019-11-14 2020-04-10 北京诺禾致源科技股份有限公司 Method, system and device for processing genome data
CN111580854A (en) * 2020-03-18 2020-08-25 平安科技(深圳)有限公司 Front-end and back-end separation method based on application program interface gateway and related equipment
CN111611514A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Page display method and device based on user login information and electronic equipment
CN111611514B (en) * 2020-04-11 2024-04-23 上海淇玥信息技术有限公司 Page display method and device based on user login information and electronic equipment
CN111666585B (en) * 2020-04-16 2023-08-18 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN111666585A (en) * 2020-04-16 2020-09-15 北京百度网讯科技有限公司 Method and device for accessing sub-application, electronic equipment and readable storage medium
CN113778503A (en) * 2020-10-13 2021-12-10 北京沃东天骏信息技术有限公司 Software maintenance method and device
CN113778503B (en) * 2020-10-13 2024-06-14 北京沃东天骏信息技术有限公司 Software maintenance method and device
CN112306972A (en) * 2020-11-02 2021-02-02 西安博康硕达网络科技有限公司 File generation method and device based on cloud storage
CN112632427A (en) * 2020-12-25 2021-04-09 航天信息股份有限公司 Page static resource management system and method based on front-end agent
CN112732362A (en) * 2021-01-18 2021-04-30 北京展心展力信息科技有限公司 Transnational software resource access method and device, electronic equipment and storage medium
CN112732362B (en) * 2021-01-18 2024-06-11 北京展心展力信息科技有限公司 Method and device for accessing nationwide software resources, electronic equipment and storage medium
CN113032491A (en) * 2021-04-07 2021-06-25 工银科技有限公司 Method, device, electronic equipment and medium for realizing static data synchronization
CN115242700B (en) * 2021-04-23 2024-03-22 网联清算有限公司 Communication transmission method, device and system
CN115242700A (en) * 2021-04-23 2022-10-25 网联清算有限公司 Communication transmission method, device and system
CN113886739A (en) * 2021-09-29 2022-01-04 中孚信息股份有限公司 Information visualization method, system and device based on dynamic configuration of content
CN114861109A (en) * 2022-05-05 2022-08-05 北京达佳互联信息技术有限公司 Page file processing method, device and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108989362A (en) A kind for the treatment of method and apparatus of static resource
CN106528432B (en) The construction method and device of test scene data bury a test method
CN109032760A (en) Method and apparatus for application deployment
CN106302445B (en) Method and apparatus for handling request
CN108494860B (en) WEB access system, WEB access method and device for client
CN107066609A (en) Image display method and device
CN109218368A (en) Realize method, apparatus, electronic equipment and the readable medium of Http reverse proxy
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN110262807A (en) Cluster creates Progress Log acquisition system, method and apparatus
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN107302597A (en) Message official documents and correspondence method for pushing and device
CN109347921A (en) A kind for the treatment of method and apparatus of digital certificate business
CN109815105A (en) Applied program testing method and device based on Btrace
CN110019539A (en) A kind of method and apparatus that the data of data warehouse are synchronous
CN112187801A (en) Website access method, device and system
CN113010405A (en) Application program testing method and device
CN109218041A (en) Request processing method and device for server system
CN108880923A (en) The method and apparatus that policer operation applied to application server is requested
CN108667915A (en) Information transmission system, method and apparatus
CN109873732A (en) Test method and device for proxy server
CN111190664A (en) Method and system for generating page
CN111953718B (en) Page debugging method and device
CN112988569A (en) Method and system for viewing micro-service request response based on nginx
CN109981546A (en) The method and apparatus for obtaining the far call relationship between application module
CN109788010A (en) A kind of method and apparatus of data localization access

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211

RJ01 Rejection of invention patent application after publication