Skip to content

Why isn't S3.getObject returning the latest object? #3083

@technicallyty

Description

@technicallyty

Confirm by changing [ ] to [x] below:

Describe the question
So I have a back end script that downloads a json file i have on S3, it then runs a few tests, and updates the json file, then re-uploads it to s3. This works fine. I can manually download and check the s3 file and its updated. However my front end, which downloads this s3 file, isn't providing the latest. The json file contains the previous data when downloading with s3.getObject. Any idea why this might be happening?

I've already tried setting cache-control to max-age=0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions