Lines Matching refs:operation
17 * @see https://w3c.github.io/ServiceWorker/#dfn-cache-batch-operation
267 const operation = {
273 operations.push(operation) // 7.3.5
393 const operation = {
400 operations.push(operation)
463 const operation = {
469 operations.push(operation)
593 for (const operation of operations) {
595 if (operation.type !== 'delete' && operation.type !== 'put') {
598 message: 'operation type does not match "delete" or "put"'
603 if (operation.type === 'delete' && operation.response != null) {
606 message: 'delete operation should not have an associated response'
611 if (this.#queryCache(operation.request, operation.options, addedItems).length) {
619 if (operation.type === 'delete') {
621 requestResponses = this.#queryCache(operation.request, operation.options)
636 } else if (operation.type === 'put') { // 4.2.6
638 if (operation.response == null) {
641 message: 'put operation should have an associated response'
646 const r = operation.request
665 if (operation.options != null) {
673 requestResponses = this.#queryCache(operation.request)
685 cache.push([operation.request, operation.response])
688 addedItems.push([operation.request, operation.response])
692 resultList.push([operation.request, operation.response])