Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/ignore-search-with-credentials-worker.js

Issue 1578363009: CacheStorage: Add ignoreSearch option to cache.matchAll(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 self.onfetch = function(e) {
2 if (!/\.txt.*/.test(e.request.url))
3 return;
4 e.respondWith(
5 self.caches.open('ignore-search')
6 .then(function(cache) {
7 return cache.add(e.request);
8 })
9 .then(function() {
10 return new Response(e.request.url);
11 })
12 );
13 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698