| 47 | } |
| 48 | |
| 49 | Result<BytesView> DiskCacheImpl::loadForAbsoluteURL(const StringBox& url) { |
| 50 | URL parsedURL(url); |
| 51 | if (parsedURL.getScheme() != "file") { |
| 52 | return Error("Invalid url"); |
| 53 | } |
| 54 | |
| 55 | Path path(parsedURL.getPath().toStringView()); |
| 56 | return load(path); |
| 57 | } |
| 58 | |
| 59 | Result<Void> DiskCacheImpl::store(const Path& path, const BytesView& bytes) { |
| 60 | auto resolvedPath = resolveAbsolutePath(path, false); |