Skip to content

Using cache.put returns "Web Cache is not available in this context." #553

Open
@benan789

Description

@benan789

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Using cache.put returns Web Cache is not available in this context. when the cache api example uses it:

await cache.put(url, response.clone());

To Reproduce

Follow this example: https://github.com/supabase/edge-runtime/blob/develop/examples/cache-api/index.ts

Expected behavior

Not sure if the example is suppose to work or if cache.put is disabled or if additional steps are needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions