Search completed in 1.28 seconds.
Request.context - Web APIs
eWorker API; a service worker can make decisions based on whether the URL is for an image, or an embeddable object such as a <video>, iframe, etc. Note: You can find a full list of the different available contexts including associated context frame types, CSP directives, and platform feature examples in the Fetch spec request context section. Syntax var myContext = request.context; Value A
RequestContext value. Example In the following snippet, we create a new request using the Request.Request() constructor (for an image file in the same directory as the script), then save the request context in a variable: var myRequest = new Request('flowers.jpg'); var myContext = myRequest.context; // returns the empty string by default ...