Skip to content

[firebase_admin] Unable to set object metadata in Firebase Storage #1358

@bigbang489

Description

@bigbang489

My Code:

const admin = await import("firebase-admin");
const bucket = admin.storage().bucket();
const file = bucket.file(path);
await file.save(content, 
    {'gzip': gzip, 'contentType':'application/json',
      'metadata': {
        'Cache-Control': 'no-transform'}})

Expected result: Object Metadata 'Cache-Control' will be set to 'no-transform'
Actual result: Object Metadata 'Cache-Control' is empty

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions