ladybird/Libraries/LibWeb/ServiceWorker/CacheStorage.idl
Luke Wilde f06732d180 LibWeb: Mark CacheStorage as Experimental
CacheStorage is currently a stub that breaks anything that uses it.
2026-02-24 17:08:48 +01:00

15 lines
627 B
Text

#import <Fetch/Request.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;
//};