Usage of Cache API with Pages

I am developing with SvelteKit on Pages, and I would like to utilize the Cache API available in Workers. However, when I write the following code on the server side of SvelteKit:

const cache = caches?.default;

It returns undefined.
Is the Cache API not usable with Pages?
Was this page helpful?