Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[BUG] DO storage keys are case-sensitive on the edge, but Miniflare uses case-insensitive key matching with persistence #247

Description

@hkochniss

Example code (simplified version of what my script is doing), local disk persistence is turned on for DOs:

const key = "foo"
state.storage.put(key, { bar: 1})
const value = await state.storage.get(key.toUpperCase())

Behavior on the edge: value is undefined
Behavior in Miniflare: value is { bar: 1 }

Not sure this changes when persistence is turned off, don't assume so

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions