Skip to content

Question: does gatsby-source-filesystem not cache downloaded remote files between builds? #4464

@RobertBolender

Description

@RobertBolender

I'm still digging into why my site with gatsby-source-wordpress is taking so long to build. (#4293)

For context: I have a site with about 1,000 posts and about 2,000 (large) images.
My builds are currently taking 20-30 minutes to finish. If I skip downloading images, it takes 2.

Looking at create-remote-file-node it looks like the cache is only used to remember headers that were received during the current build, I guess to prevent downloading the same image twice during a single build in case the image is referenced multiple times.

From what I can tell, Gatsby will still download every remote file on every build.

Would it not be possible to store the whole image to prevent redownloading and reprocessing with gatsby-transformer-sharp?

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