Skip to content

Handle cors in cloudfront and fastly directly #880

@marcoieni

Description

@marcoieni

The configuration of static.crates.io includes Origin header into cache key. If it’s for CORS support, might be worth looking into enabling CORS on CloudFront and Fastly natively.

Why?

Most likely we include that header in cache key and forward it to S3 so that S3 would do a CORS handling for us, but you can move this handling to CloudFront and Fastly and reduce cache key duplication, reducing the load on S3.

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