ApplicationCacheResource* ApplicationCache::resourceForRequest(const ResourceRequest& request) { // We only care about HTTP/HTTPS GET requests. if (!requestIsHTTPOrHTTPSGet(request)) return false; KURL url(request.url()); if (url.hasRef()) url.removeRef(); return resourceForURL(url); }
ApplicationCacheResource* ApplicationCache::resourceForRequest(const ResourceRequest& request) { // We only care about HTTP/HTTPS GET requests. if (!requestIsHTTPOrHTTPSGet(request)) return 0; URL url(request.url()); if (url.hasFragmentIdentifier()) url.removeFragmentIdentifier(); return resourceForURL(url); }