Get an AudioBuffer for the specified URL, using intelligent caching strategies.
Caching Flow:
The cache prioritizes HTTP conditional requests (ETag/Last-Modified) over TTL to ensure content freshness while maintaining performance through 304 responses.
AudioContext for decoding audio data
URL of the audio resource to fetch
Optionalsignal: AbortSignal
Optional AbortSignal to cancel the operation
Optionalcallbacks: CacheCallbacksPromise that resolves to decoded AudioBuffer
Staticset
AudioCache provides efficient caching of audio resources using HTTP caching standards.
Features:
Caching Strategy:
Example