mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
22 lines
851 B
Plaintext
22 lines
851 B
Plaintext
#import <Fetch/Request.idl>
|
|
#import <ServiceWorker/Cache.idl>
|
|
|
|
// https://w3c.github.io/ServiceWorker/#cachestorage-interface
|
|
[SecureContext, Exposed=(Window,Worker), Experimental]
|
|
interface CacheStorage {
|
|
//[NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
|
|
[NewObject] Promise<boolean> has(DOMString cacheName);
|
|
[NewObject] Promise<Cache> open(DOMString cacheName);
|
|
[NewObject] Promise<boolean> delete(DOMString cacheName);
|
|
[NewObject] Promise<sequence<DOMString>> keys();
|
|
};
|
|
|
|
//dictionary MultiCacheQueryOptions : CacheQueryOptions {
|
|
// DOMString cacheName;
|
|
//};
|
|
|
|
// https://w3c.github.io/ServiceWorker/#self-caches
|
|
partial interface mixin WindowOrWorkerGlobalScope {
|
|
[SecureContext, SameObject, Experimental] readonly attribute CacheStorage caches;
|
|
};
|