| Index: third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
|
| diff --git a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
|
| index ec8460cdf35ef6adfb7aca6dfbaa9593b0e5cf41..526ed8a7e71513fdcc5e23341a8984e03becb0f6 100644
|
| --- a/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
|
| +++ b/third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp
|
| @@ -320,6 +320,11 @@ ScriptPromise CacheStorage::matchImpl(ScriptState* scriptState, const Request* r
|
| ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
|
| const ScriptPromise promise = resolver->promise();
|
|
|
| + if (request->method() != HTTPNames::GET && !options.ignoreMethod()) {
|
| + resolver->resolve();
|
| + return promise;
|
| + }
|
| +
|
| if (m_webCacheStorage)
|
| m_webCacheStorage->dispatchMatch(new MatchCallbacks(resolver), webRequest, Cache::toWebQueryParams(options));
|
| else
|
|
|