CN107861966A - Cache detection method, equipment and computer-readable recording medium - Google Patents

Cache detection method, equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107861966A
CN107861966A CN201710741429.XA CN201710741429A CN107861966A CN 107861966 A CN107861966 A CN 107861966A CN 201710741429 A CN201710741429 A CN 201710741429A CN 107861966 A CN107861966 A CN 107861966A
Authority
CN
China
Prior art keywords
website
webpage
type
caching
browser
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.)
Granted
Application number
CN201710741429.XA
Other languages
Chinese (zh)
Other versions
CN107861966B (en
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201710741429.XA priority Critical patent/CN107861966B/en
Publication of CN107861966A publication Critical patent/CN107861966A/en
Application granted granted Critical
Publication of CN107861966B publication Critical patent/CN107861966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

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)

Abstract

The invention discloses one kind to cache detection method, and this method includes:When receiving caching detection instruction, default browser is controlled to conduct interviews default the first website for including type of webpage information, so that browser caches to the type of webpage information in the first website, wherein, type of webpage information is used to identify type of webpage corresponding to the first website;The type of webpage information of browser rs cache is obtained, the type of webpage information in the type of webpage information and the first website that get is compared;If the type of webpage information got is identical with the type of webpage information in the first website, judge that the caching function of website and webpage corresponding with the first website is normal.The invention also discloses one kind caching detection device and a kind of computer-readable recording medium.The present invention can realize the automatic detection of website and webpage caching function, so as to improve the efficiency of detection and accuracy.

Description

Cache detection method, equipment and computer-readable recording medium
Technical field
The present invention relates to Internet technical field, more particularly to caching detection method, equipment and computer-readable storage medium Matter.
Background technology
Many business websites possess info web caching function, so-called info web caching function, i.e., when user makes at present During with browser access website and webpage, the caching program of the website can control browser to believe the relevant field in the webpage network address Breath is cached, field informations of these cachings can and the personal information that be inputted on the webpage of user send together and preserve to The operation system database of website, so that businessman understands access behavior of the user based on the website and webpage.
Because Web caching program leak in itself or Web caching program load not congruent reason, the info web of website Exception may occur for caching function.In the prior art, it is whether normal in order to test the info web caching function of website, typically adopt Manually means of testing, i.e. website maintenance personnel are periodically manually accessed each webpage of website and check browser one by one Cache, i.e. whether the relevant field information cached in browser cookie is correct, and because general website and webpage are numerous, inspection manually The mode of survey undoubtedly takes time and effort, and mistake easily occurs.
The content of the invention
It is a primary object of the present invention to propose a kind of caching detection method, equipment and computer-readable recording medium, purport The automatic detection of website and webpage caching function is being realized, so as to improve the efficiency of detection and accuracy.
To achieve the above object, the present invention provides a kind of caching detection method, and the caching detection method includes following step Suddenly:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
Alternatively, when the type of webpage information includes the cache invalidation of type of webpage mark and type of webpage mark Between, before the normal step of caching function for judging corresponding with first website website and webpage, in addition to:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in institute In the caching for stating browser;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and described the The caching function of website and webpage is normal corresponding to one website.
Alternatively, the normal step of caching function for judging corresponding with first website website and webpage it Before, in addition to:
Increase default channel mark parameter in first website to obtain the second website, the channel Identification parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website Channel mark parameter in network address is cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described Channel mark parameter in second website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, hold Row step:Judge that the caching function of website and webpage corresponding with first website is normal.
Alternatively, the normal step of caching function for judging corresponding with first website website and webpage it Before, in addition to:
Channel mark parameter in second website is modified, controls the browser to amended institute State the second website to conduct interviews, so that the browser caches the amended channel mark parameter;
Obtain the amended channel mark parameter of the browser rs cache, the amended canal that will be got Amended channel mark parameter is compared in road identification parameter and second website;
If amended channel mark in the amended channel mark parameter got and second website It is identical to know parameter, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
Alternatively, the modification includes increasing or decreasing the channel mark parameter, or changes the channel mark ginseng Several parameter values.
In addition, to achieve the above object, the present invention also provides a kind of caching detection device, the caching detection device bag Include:The caching detection program that memory, processor and being stored in can be run on the memory and on the processor, it is described Following steps are realized when caching detection program is by the computing device:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
Alternatively, when the type of webpage information includes the cache invalidation of type of webpage mark and type of webpage mark Between, also realize following steps when the caching detection program is by the computing device:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in institute In the caching for stating browser;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and described the The caching function of website and webpage is normal corresponding to one website.
Alternatively, following steps are also realized when the caching detects program by the computing device:
Increase default channel mark parameter in first website to obtain the second website, the channel Identification parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website Channel mark parameter in network address is cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described Channel mark parameter in second website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, hold Row step:Judge that the caching function of website and webpage corresponding with first website is normal.
Alternatively, following steps are also realized when the caching detects program by the computing device:
Channel mark parameter in second website is modified, controls the browser to amended institute State the second website to conduct interviews, so that the browser caches the amended channel mark parameter;
Obtain the amended channel mark parameter of the browser rs cache, the amended canal that will be got Amended channel mark parameter is compared in road identification parameter and second website;
If amended channel mark in the amended channel mark parameter got and second website It is identical to know parameter, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Caching detection program is stored with storage medium, the caching detection program realizes following steps when being executed by processor:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
The present invention controls default browser to include type of webpage letter to default when receiving caching detection instruction First website of breath conducts interviews, so that the browser is carried out to the type of webpage information in first website Caching, wherein, the type of webpage information is used to identify type of webpage corresponding to first website;Browsed described in acquisition The type of webpage information of device caching, by the webpage in the type of webpage information and first website that get Type information is compared;If the type of webpage information in the type of webpage information and first website that get It is identical, then judge that the caching function of website and webpage corresponding with first website is normal.The present invention passes through analog subscriber Accessing the operation of website and webpage so that browser caches to the type of webpage information in website, and then by browser The type of webpage information of caching and real type of webpage information are compared, whether to judge the caching function of the website and webpage Normally, it is achieved thereby that automatic detection to website and webpage caching function, the efficiency and accuracy of detection are improved.
Brief description of the drawings
Fig. 1 is the device structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet of present invention caching detection method first embodiment;
Fig. 3 is the schematic flow sheet of present invention caching detection method 3rd embodiment.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When receiving caching detection instruction, default browser is controlled Default the first website for including type of webpage information is conducted interviews, so that the browser is to first website Type of webpage information in network address is cached, wherein, the type of webpage information is used to identify first website pair The type of webpage answered;The type of webpage information of the browser rs cache is obtained, the type of webpage information that will be got It is compared with the type of webpage information in first website;If the type of webpage information got and described Type of webpage information in one website is identical, then judges the caching work(of website and webpage corresponding with first website Can be normal.
In the prior art, it is whether normal in order to test the info web caching function of website, typically use manual testing's hand Section, i.e., website maintenance personnel are periodically manually accessed each webpage of website and check browser rs cache one by one, that is, are browsed Whether the relevant field information cached in device cookie correct, and because general website and webpage are numerous, the mode detected manually without Doubt and take time and effort, and mistake easily occur.
The present invention accesses the operation of website and webpage by analog subscriber so that browser is to the type of webpage in website Information is cached, and then the type of webpage information of browser rs cache and real type of webpage information are compared, to sentence Whether the caching function of the disconnected website and webpage is normal, it is achieved thereby that the automatic detection to website and webpage caching function, is improved The efficiency and accuracy of detection.
The present invention provides a kind of method.
As shown in figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
Equipment of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, pocket computer etc. with aobvious Show the packaged type terminal device of function.
As shown in figure 1, the equipment can include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used to realize the connection communication between these components. User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that the restriction of the device structure shown in Fig. 1 not structure paired terminal, can be wrapped Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network Believe module, Subscriber Interface Module SIM and caching detection program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used in connecting background server, is carried out with background server Data communicate;User interface 1003 is mainly used in connecting client (user terminal), enters row data communication with client;And processor 1001 can be used for calling the caching detection program stored in memory 1005, and perform following operate:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
Further, the type of webpage information includes the cache invalidation of type of webpage mark and type of webpage mark Time, processor 1001 can call the caching stored in memory 1005 to detect program, also perform following operate:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in institute In the caching for stating browser;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and described the The caching function of website and webpage is normal corresponding to one website.
Further, processor 1001 can call the caching stored in memory 1005 to detect program, also perform following Operation:
Increase default channel mark parameter in first website to obtain the second website, the channel Identification parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website Channel mark parameter in network address is cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described Channel mark parameter in second website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, hold Row step:Judge that the caching function of website and webpage corresponding with first website is normal.
Further, processor 1001 can call the caching stored in memory 1005 to detect program, also perform following Operation:
Channel mark parameter in second website is modified, controls the browser to amended institute State the second website to conduct interviews, so that the browser caches the amended channel mark parameter;
Obtain the amended channel mark parameter of the browser rs cache, the amended canal that will be got Amended channel mark parameter is compared in road identification parameter and second website;
If amended channel mark in the amended channel mark parameter got and second website It is identical to know parameter, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
Further, the modification includes increasing or decreasing the channel mark parameter, or changes the channel mark The parameter value of parameter.
Based on above-mentioned hardware configuration, present invention caching detection method embodiment is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of present invention caching detection method first embodiment, the caching detection side Method includes:
Step S10, when receiving caching detection instruction, default browser is controlled to include type of webpage to default First website of information conducts interviews, so that the browser enters to the type of webpage information in first website Row caching, wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The present embodiment caching detection method can be detected by the caching detection application on caching detection device or caching Program realizes that the caching detection device can be PC or smart mobile phone, tablet personal computer, pocket computer etc. with aobvious Show the packaged type terminal device of function, and browser application is also equipped with the caching detection device, to realize to website The access of webpage.
The application scenarios of the present embodiment can be:User opens caching detection application and is that website and webpage to be detected are advance Frequency or the time point of caching detection are set, for example once caching detection, or cached at daily zero was carried out every 1 week Detection, afterwards, caching detection program are the caching according to default frequency or time point automatic detection website and webpage to be detected Whether function is normal.Certainly, caching detection program can also directly receive the caching detection instruction of user's triggering, or receive it The caching detection instruction that his application program is sent, is detected with the caching function to website and webpage to be detected, is embodied When can flexibly set.
, can be according to default clear to caching detection instruction unpack when caching detection program receives caching detection instruction Look at device, and control the browser to be conducted interviews automatically to default the first website for including type of webpage information, so that The browser caches to the type of webpage information in the first website.Wherein, the type of preset browsing device is not construed as limiting, For example can be IE browser, *** browser, Google's browser or other customizations have the clear of info web caching function Look at device;Include type of webpage information in first website, the type of webpage Informational Expression is the identifier word in website Section, for identifying type of webpage corresponding to the first website, wherein, the division species of type of webpage can flexibly be set, such as, Different according to media are accessed, type of webpage can be divided into Baidu's webpage, Google's webpage, search dog webpage etc., according to access equipment Difference, type of webpage can be divided into mobile phone version webpage, computerized version webpage etc., in addition, mark corresponding with the type of webpage of division Knowing fields can also flexibly be set.Citing illustrates below.
Assuming that default first website for including type of webpage information is https://www.ph.com.cn WT.mc_id=111&WT.mc_hd=pidx, wherein, identification field WT.mc_id=111&WT.mc_hd=pidx is identified Type of webpage information, and preset WT.mc_id=111 marks Baidu webpage, WT.mc_hd=pidx mark mobile phone version nets Page, then the access media that WT.mc_id=111&WT.mc_hd=pidx identifies first website are Baidu, and this first Website corresponds to mobile phone version webpage.
, can be automatically by the WT.mc_id=111 in the network address when browser conducts interviews to above-mentioned first website The two type of webpage information are cached with WT.mc_hd=pidx.
Step S20, the type of webpage information of the browser rs cache is obtained, the type of webpage got is believed Type of webpage information in breath and first website is compared;
Because Web caching program leak in itself or Web caching program load not congruent reason, the info web of website Exception may occur for caching function, and ultimately result in the net in the type of webpage information and actual site network address cached in browser Page type information is not inconsistent, and therefore, after the type of webpage in above-mentioned browser rs cache website, caching detection program obtains should The type of webpage information of browser rs cache, and the type of webpage in the type of webpage information and the first website that get is believed Breath is compared, to judge whether both are identical.
If the type of webpage information got is identical with the type of webpage information in first website, hold OK:
Step S30, judge that the caching function of website and webpage corresponding with first website is normal.
If the type of webpage information got is identical with the type of webpage information in the first website, judges and be somebody's turn to do The caching function of website and webpage is normal corresponding to first website.Specifically, using above-mentioned first website as https:// www.ph.com.cnExemplified by WT.mc_id=111&WT.mc_hd=pidx, if in the browser that caching detection device is got The type of webpage information of caching is WT.mc_id=111, WT.mc_hd=pidx, and the type of webpage in the first website is believed Breath is also WT.mc_id=111, WT.mc_hd=pidx, now judges the slow of website and webpage corresponding with the first website It is normal to deposit function.
If the type of webpage information got is different with the type of webpage information in the first website, such as, obtain To browser in the type of webpage information that caches be WT.mc_id=222, WT.mc_hd=pidx, and in the first website Type of webpage information be WT.mc_id=111, WT.mc_hd=pidx, then can be determined that net corresponding with the first website Stand webpage caching function it is abnormal.
It is understood that using all webpages in website as website and webpage to be detected, and according to above-mentioned steps pair These website and webpage to be detected carry out caching function detection one by one, you can the caching testing result of whole website are obtained, if depositing It is abnormal in the caching function of any website and webpage, you can to judge that the caching function of the website is abnormal.
In the present embodiment, when receiving caching detection instruction, default browser is controlled to include net to default First website of page type information conducts interviews, so that the browser is to the type of webpage in first website Information is cached, wherein, the type of webpage information is used to identify type of webpage corresponding to first website;Obtain The type of webpage information of the browser rs cache, by the type of webpage information got and first website In type of webpage information be compared;If the webpage in the type of webpage information and first website that get Type information is identical, then judges that the caching function of website and webpage corresponding with first website is normal.The present embodiment leads to Cross the operation that analog subscriber accesses website and webpage so that browser caches to the type of webpage information in website, enters And the type of webpage information of browser rs cache and real type of webpage information are compared, to judge the slow of the website and webpage Deposit whether function is normal, it is achieved thereby that the automatic detection to website and webpage caching function, improve the efficiency and standard of detection True property.
Further, detection method first embodiment is cached based on the present invention, proposes present invention caching detection method second Embodiment.
In the present embodiment, when type of webpage information includes the failure of type of webpage mark and type of webpage mark Between, so-called cache invalidation time, i.e. type of webpage mark are stored in the out-of-service time point in browser rs cache, in cache invalidation After time, type of webpage mark no longer will be stored in browser rs cache.Based on the embodiment shown in above-mentioned Fig. 2, in step Before S30, it can also include:
Step S40, detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether It is present in the caching of the browser;
In the step, the type of webpage in the type of webpage information and the first website of the browser rs cache got When information is identical, caching detection program continues to detect the type of webpage information of the browser rs cache got.Specifically Ground, using the first website as https://www.ph.com.cnWT.mc_id=111&19:15:Exemplified by 07, wherein WT.mc_id identifies for type of webpage, and 19:15:07 represents 15 when the out-of-service time that this type of webpage of WT.mc_id identifies is 19 Point 07 second, then caching detection program when present system time reaches 19 15 divide 07 second after, whether detection WT.mc_id=111 Persist in the caching of browser.
If after the cache invalidation time, type of webpage mark is no longer present in the caching of the browser, then performs step Rapid S30:Judge that the caching function of website and webpage corresponding with the first website is normal.Conversely, then judge and the first website net The caching function of website and webpage corresponding to location is abnormal.
The present embodiment carries out cache invalidation time detecting by being identified to type of webpage, expands detection range, further Improve the accuracy of web cache Function detection.
Further, detection method first or second embodiments are cached based on the present invention, proposes present invention caching detection side Method 3rd embodiment.Reference picture 3, Fig. 3 are the schematic flow sheet of present invention caching detection method 3rd embodiment.Based on above-mentioned figure Embodiment shown in 2, before step S30 steps, it can also include:
Step S50, increase default channel mark parameter in first website to obtain the second website, The channel mark parameter is used for the dispensing channel for identifying second website;
In the step, before the normal step of the caching function of website and webpage corresponding with the first website is judged, Caching detection program can also increase default channel mark parameter to obtain the second website in the first website, its In, channel mark parameter is used for the dispensing channel for identifying second website.
Channel mark parameter common at present includes utm parameters and hm parameters, is illustrated below by taking utm parameters as an example. Utm parameters mainly include following several types:
1st, utm_source (dispensing media), such as utm_source=zhihu, the media outlets for representing to launch are to know; 2nd, utm_medium (dispensing medium), such as utm_medium=article, the medium for representing to launch is an article;3、utm_ Campaign (dispensing unit), such as utm_campaign=product, it is product introduction series to represent this article;4、 Utm_content (dispensing content), such as utm_content=textlink, represent that article content is mainly Text Link, 5, Utm_term (dispensing keyword), such as utm_content=shoes, represent that article mainly introduces footwear.
It is https in the first website://www.ph.com.cnDuring WT.mc_id=111, it might as well increase wherein Default channel mark parameter utm_source=a, utm_medium=b, utm_campaign=c, utm_content=d, Utm_term=e, to obtain the second website https://www.ph.com.cnWT.mc_id=111&utm_source =a&utm_medium=b&utm_campaign=c&utm_content=d&utm_term=e.
Step S60, the browser is controlled to conduct interviews second website, so that the browser is to described Channel mark parameter in second website is cached;
In the step, caching detection programme-control browser conducts interviews to the second website, so that the browser pair Channel mark parameter in second website is cached, i.e., to above-mentioned utm_source, utm_medium, utm_ The channel mark parameter such as campaign, utm_content and utm_term is cached.
Step S70, the channel mark parameter of the browser rs cache is obtained, the channel mark got is joined Channel mark parameter in number and second website is compared;
If the channel mark parameter got is identical with the channel mark parameter in the second website, step is performed S30:Judge that the caching function of website and webpage corresponding with first website is normal.
In the step, caching detection program obtains the channel mark parameter of browser rs cache, and the channel mark that will be got The channel mark parameter known in parameter and the second website is compared, to judge whether both are identical.For example if get Browser rs cache channel mark parameter it is consistent with the channel mark parameter in the second website, be all utm_source= A, utm_medium=b, utm_campaign=c, utm_content=d, utm_term=e, then now judge and the first net Stand website and webpage corresponding to network address caching function it is normal, it is on the contrary then judge delaying for corresponding with the first website website and webpage Deposit dysfunction.
This implementation is further expanded detection range, improved by detection of the increase to channel mark parameter in caching The accuracy of web cache Function detection.
Further, detection method 3rd embodiment is cached based on the present invention, proposes present invention caching detection method the 4th Embodiment.In the present embodiment, can also include before step S30:
Step S80, the channel mark parameter in second website is modified, control the browser to repairing Second website after changing conducts interviews, so that the browser delays to the amended channel mark parameter Deposit;
In the step, before the normal step of the caching function of website and webpage corresponding with the first website is judged, Caching detection program can also modify to the channel mark parameter in the second website, then control browser to modification The second website afterwards conducts interviews, so that the browser caches to amended channel mark parameter.Specifically, Modification includes increasing or decreasing channel mark parameter, or changes the parameter value of channel mark parameter, such as, can be real by the 3rd The channel mark parameter applied in example is revised as utm_source=a, utm_medium=b, utm_campaign=f.
Step S90, the amended channel mark parameter of the browser rs cache is obtained, after the modification got The channel mark parameter and second website in amended channel mark parameter be compared;
If amended channel mark in the amended channel mark parameter got and second website It is identical to know parameter, then performs step S30:Judge that the caching function of website and webpage corresponding with first website is normal.
In the step, caching detection program obtains the amended channel mark parameter of browser rs cache, and will get Amended channel mark parameter and the second website in amended channel mark parameter be compared, with judge both It is whether identical.Such as if amended channel mark in the amended channel mark parameter got and the second website Parameter is consistent, is all utm_source=a, utm_medium=b, utm_campaign=f, then now judges and the first website The caching function of website and webpage corresponding to network address is normal, caching that is on the contrary then judging website and webpage corresponding with the first website Dysfunction.
In the present embodiment, by being modified to the channel mark parameter in the second website, and then modification is accessed The second website afterwards, judge the channel mark parameter that now caches in browser whether with amended channel mark parameter Unanimously, detection range is further expanded, improves the accuracy of web cache Function detection.
The present invention also provides a kind of caching detection device.
Present invention caching detection device includes:Memory, processor and it is stored on the memory and can be at the place The caching detection program run on reason device, the caching detection program are realized lower step during the computing device:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
Further, the type of webpage information includes the cache invalidation of type of webpage mark and type of webpage mark Time, the caching detection program are also realized lower step during the computing device:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in institute In the caching for stating browser;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and described the The caching function of website and webpage is normal corresponding to one website.
Further, the caching detection program is also realized lower step during the computing device:
Increase default channel mark parameter in first website to obtain the second website, the channel Identification parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website Channel mark parameter in network address is cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described Channel mark parameter in second website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, hold Row step:Judge that the caching function of website and webpage corresponding with first website is normal.
Further, the caching detection program is also realized lower step during the computing device:
Channel mark parameter in second website is modified, controls the browser to amended institute State the second website to conduct interviews, so that the browser caches the amended channel mark parameter;
Obtain the amended channel mark parameter of the browser rs cache, the amended canal that will be got Amended channel mark parameter is compared in road identification parameter and second website;
If amended channel mark in the amended channel mark parameter got and second website It is identical to know parameter, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
Wherein, the method that the caching detection program run on the processor is realized when being performed can refer to the present invention Detection method embodiment is cached, here is omitted.
The present invention also provides a kind of computer-readable recording medium.
Caching detection program is stored with computer-readable recording medium of the present invention, the caching detection program is by processor Following steps are realized during execution:
When receiving caching detection instruction, default browser is controlled to include the of type of webpage information to default One website conducts interviews, so that the browser caches to the type of webpage information in first website, Wherein, the type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described Type of webpage information in first website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, sentence The caching function of fixed website and webpage corresponding with first website is normal.
Wherein, the method that the caching detection program run on the processor is realized when being performed can refer to the present invention Detection method embodiment is cached, here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. one kind caching detection method, it is characterised in that the caching detection method comprises the following steps:
When receiving caching detection instruction, default browser is controlled to default the first net for including type of webpage information Network address of standing conducts interviews, so that the browser caches to the type of webpage information in first website, wherein, The type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described first Type of webpage information in website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, judge with The caching function of website and webpage is normal corresponding to first website.
2. detection method is cached as claimed in claim 1, it is characterised in that the type of webpage information includes type of webpage mark Know and the cache invalidation time of type of webpage mark, it is described to judge corresponding with first website website and webpage Before the normal step of caching function, in addition to:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in described clear Look in the caching of device;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and first net Stand website and webpage corresponding to network address caching function it is normal.
3. caching detection method as claimed in claim 1 or 2, it is characterised in that the judgement and first website Before the normal step of the caching functions of corresponding website and webpage, in addition to:
Increase default channel mark parameter in first website to obtain the second website, the channel mark Parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website In channel mark parameter cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described second Channel mark parameter in website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, step is performed Suddenly:Judge that the caching function of website and webpage corresponding with first website is normal.
4. caching detection method as claimed in claim 3, it is characterised in that the judgement is corresponding with first website Website and webpage the normal step of caching function before, in addition to:
Channel mark parameter in second website is modified, controls the browser to amended described Two websites conduct interviews, so that the browser caches to the amended channel mark parameter;
The amended channel mark parameter of the browser rs cache is obtained, the amended channel mark that will be got Know amended channel mark parameter in parameter and second website to be compared;
If amended channel mark ginseng in the amended channel mark parameter got and second website Number is identical, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
5. caching detection method as claimed in claim 4, it is characterised in that the modification includes increasing or decreasing the channel Identification parameter, or change the parameter value of the channel mark parameter.
6. one kind caching detection device, it is characterised in that the caching detection device includes:Memory, processor and it is stored in On the memory and can run on the processor caching detection program, it is described caching detection program by the processor Following steps are realized during execution:
When receiving caching detection instruction, default browser is controlled to default the first net for including type of webpage information Network address of standing conducts interviews, so that the browser caches to the type of webpage information in first website, wherein, The type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described first Type of webpage information in website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, judge with The caching function of website and webpage is normal corresponding to first website.
7. caching detection device as claimed in claim 6, it is characterised in that the type of webpage information includes type of webpage mark Know and the cache invalidation time of type of webpage mark, the caching detection program are also realized such as during the computing device Lower step:
Detect after the cache invalidation time of type of webpage mark, the type of webpage identifies whether to be present in described clear Look in the caching of device;
If the type of webpage mark is not present in the caching of the browser, step is performed:Judge and first net Stand website and webpage corresponding to network address caching function it is normal.
8. caching detection device as claimed in claims 6 or 7, it is characterised in that the caching detection program is by the processing Device also realizes following steps when performing:
Increase default channel mark parameter in first website to obtain the second website, the channel mark Parameter is used for the dispensing channel for identifying second website;
The browser is controlled to conduct interviews second website, so that the browser is to second website In channel mark parameter cached;
The channel mark parameter of the browser rs cache is obtained, by the channel mark parameter got and described second Channel mark parameter in website is compared;
If the channel mark parameter got is identical with the channel mark parameter in second website, step is performed Suddenly:Judge that the caching function of website and webpage corresponding with first website is normal.
9. caching detection device as claimed in claim 8, it is characterised in that the caching detection program is held by the processor Following steps are also realized during row:
Channel mark parameter in second website is modified, controls the browser to amended described Two websites conduct interviews, so that the browser caches to the amended channel mark parameter;
The amended channel mark parameter of the browser rs cache is obtained, the amended channel mark that will be got Know amended channel mark parameter in parameter and second website to be compared;
If amended channel mark ginseng in the amended channel mark parameter got and second website Number is identical, then performs step:Judge that the caching function of website and webpage corresponding with first website is normal.
10. a kind of computer-readable recording medium, it is characterised in that caching inspection is stored with the computer-readable recording medium Ranging sequence, the caching detection program realize following steps when being executed by processor:
When receiving caching detection instruction, default browser is controlled to default the first net for including type of webpage information Network address of standing conducts interviews, so that the browser caches to the type of webpage information in first website, wherein, The type of webpage information is used to identify type of webpage corresponding to first website;
The type of webpage information of the browser rs cache is obtained, by the type of webpage information got and described first Type of webpage information in website is compared;
If the type of webpage information got is identical with the type of webpage information in first website, judge with The caching function of website and webpage is normal corresponding to first website.
CN201710741429.XA 2017-08-24 2017-08-24 Cache detection method, equipment and computer readable storage medium Active CN107861966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710741429.XA CN107861966B (en) 2017-08-24 2017-08-24 Cache detection method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710741429.XA CN107861966B (en) 2017-08-24 2017-08-24 Cache detection method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107861966A true CN107861966A (en) 2018-03-30
CN107861966B CN107861966B (en) 2020-08-04

Family

ID=61699207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710741429.XA Active CN107861966B (en) 2017-08-24 2017-08-24 Cache detection method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107861966B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762937A (en) * 2020-06-03 2021-12-07 富泰华工业(深圳)有限公司 Advertisement operation system and method, readable storage medium
CN114244581A (en) * 2021-11-29 2022-03-25 西安四叶草信息技术有限公司 Cache poisoning vulnerability detection method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267712A1 (en) * 2003-06-23 2004-12-30 Khachatur Papanyan Method and apparatus for web cache using database triggers
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device
US20140289317A1 (en) * 2007-07-19 2014-09-25 Ebay Inc. Method and system to detect a cached web page
CN104298675A (en) * 2013-07-18 2015-01-21 国际商业机器公司 Method and device for cache management
CN105930528A (en) * 2016-06-03 2016-09-07 腾讯科技(深圳)有限公司 Webpage cache method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267712A1 (en) * 2003-06-23 2004-12-30 Khachatur Papanyan Method and apparatus for web cache using database triggers
US20140289317A1 (en) * 2007-07-19 2014-09-25 Ebay Inc. Method and system to detect a cached web page
CN104298675A (en) * 2013-07-18 2015-01-21 国际商业机器公司 Method and device for cache management
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device
CN105930528A (en) * 2016-06-03 2016-09-07 腾讯科技(深圳)有限公司 Webpage cache method and server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113762937A (en) * 2020-06-03 2021-12-07 富泰华工业(深圳)有限公司 Advertisement operation system and method, readable storage medium
CN114244581A (en) * 2021-11-29 2022-03-25 西安四叶草信息技术有限公司 Cache poisoning vulnerability detection method and device, electronic equipment and storage medium
CN114244581B (en) * 2021-11-29 2024-03-29 西安四叶草信息技术有限公司 Cache poisoning vulnerability detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107861966B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US9098708B2 (en) Mobile application security score calculation
US20170154013A9 (en) Ad blocking page display method and device
CN104584011B (en) Method and system for being inserted into the secure network of WEB content and WEB service
CN104486140A (en) Device and method for detecting hijacking of web page
CN105045620B (en) Measure the method and detection device of webpage head screen load time
CN106528659A (en) A control method and device for jumping from a browser to an application program
CN104579830B (en) service monitoring method and device
CN105607986A (en) Acquisition method and device of user behavior log data
CN107241300B (en) User request intercepting method and device
CN104125308B (en) For the method and domain name analysis system of the domain name mapping of multi-user
CN107124477A (en) Processing method, terminal and the server of web site contents
CN109446801A (en) Detect method, apparatus, server and the storage medium of simulator access
CN107807830A (en) Medical software update method and server based on cluster
CN106649531A (en) Webpage detection method and device
CN102880698B (en) A kind of crawl website defining method and device
CN107861966A (en) Cache detection method, equipment and computer-readable recording medium
CN104468459A (en) Vulnerability detection method and apparatus
US10095791B2 (en) Information search method and apparatus
CN111597102A (en) Page performance testing method, terminal and storage medium
CN107220260A (en) The method and device that a kind of page is shown
CN106775795A (en) A kind of method and apparatus that service is provided for hypbrid app
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
CN103678312B (en) A kind of method and client for recommending network address
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
CN104392009B (en) The method and apparatus obtaining mobile site chained address

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
GR01 Patent grant
GR01 Patent grant