mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
4.3 KiB
JavaScript
1 line
4.3 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6026],{3905:function(e,r,t){t.d(r,{Zo:function(){return i},kt:function(){return m}});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function a(e,r){if(null==e)return{};var t,n,p=function(e,r){if(null==e)return{};var t,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var s=n.createContext({}),u=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},i=function(e){var r=u(e.components);return n.createElement(s.Provider,{value:r},e.children)},f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},l=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,o=e.originalType,s=e.parentName,i=a(e,["components","mdxType","originalType","parentName"]),l=u(t),m=p,h=l["".concat(s,".").concat(m)]||l[m]||f[m]||o;return t?n.createElement(h,c(c({ref:r},i),{},{components:t})):n.createElement(h,c({ref:r},i))}));function m(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var o=t.length,c=new Array(o);c[0]=l;var a={};for(var s in r)hasOwnProperty.call(r,s)&&(a[s]=r[s]);a.originalType=e,a.mdxType="string"==typeof e?e:p,c[1]=a;for(var u=2;u<o;u++)c[u]=t[u];return n.createElement.apply(null,c)}return n.createElement.apply(null,t)}l.displayName="MDXCreateElement"},762:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return a},contentTitle:function(){return s},metadata:function(){return u},toc:function(){return i},default:function(){return l}});var n=t(87462),p=t(63366),o=(t(67294),t(3905)),c=["components"],a={},s=void 0,u={unversionedId:"puppeteer.httpresponse.fromcache",id:"version-10.0.0/puppeteer.httpresponse.fromcache",isDocsHomePage:!1,title:"puppeteer.httpresponse.fromcache",description:"Home > puppeteer > HTTPResponse > fromCache",source:"@site/versioned_docs/version-10.0.0/puppeteer.httpresponse.fromcache.md",sourceDirName:".",slug:"/puppeteer.httpresponse.fromcache",permalink:"/puppeteer/docs/10.0.0/puppeteer.httpresponse.fromcache",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.0.0/puppeteer.httpresponse.fromcache.md",version:"10.0.0",frontMatter:{},sidebar:"version-10.0.0/docs",previous:{title:"puppeteer.httpresponse.frame",permalink:"/puppeteer/docs/10.0.0/puppeteer.httpresponse.frame"},next:{title:"puppeteer.httpresponse.fromserviceworker",permalink:"/puppeteer/docs/10.0.0/puppeteer.httpresponse.fromserviceworker"}},i=[{value:"HTTPResponse.fromCache() method",id:"httpresponsefromcache-method",children:[]}],f={toc:i};function l(e){var r=e.components,t=(0,p.Z)(e,c);return(0,o.kt)("wrapper",(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/index"},"Home")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer"},"puppeteer")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer.httpresponse"},"HTTPResponse")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/10.0.0/puppeteer.httpresponse.fromcache"},"fromCache")),(0,o.kt)("h2",{id:"httpresponsefromcache-method"},"HTTPResponse.fromCache() method"),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"fromCache(): boolean;\n")),(0,o.kt)("b",null,"Returns:"),(0,o.kt)("p",null,"boolean"),(0,o.kt)("p",null,"True if the response was served from either the browser's disk cache or memory cache."))}l.isMDXComponent=!0}}]); |