Support » Plugin: W3 Total Cache » W3 CDN Cloudfront: Is Push or Pull better in this case

  • Hello everyone,

    A friend of mine has been using WordPress + S3 for a while now. He stores 99% of the images used on the site and larger media files like audio and product downloads on S3 by manually uploading them to S3.

    From what we’ve been able to find online, there are two ways of setting up Cloudfront:

    Wordpress –> S3 with actual content in bucket –> Cloudfront

    Wordpress (–> ‘invisble’ S3) –> Cloudfront

    Pull is supposed to be more automated and cheaper in the end.

    We’ve succesfully managed to set up W3 + Cloudfront using a Pull setup. And now images from the media library, css files and javascript files are being loaded from cloudfront servers, which can be confirmed by checking the site’s source code.

    However, the images (1.000+) are still being loaded from a single S3 location as they’ve been ‘outside’ of WordPress all this time.

    As far as I can see you can only implement one distribution in W3, either push or pull depending on the source selected.

    What would be the best way to get the images in the S3 bucket to be distributed through Cloudfront as well? Do we need to switch to the push method, which seems to be less convenient in the future? Or is there an easy way to get the S3 files distributed through Cloudfront without incurring a ton of manual work on the site?

    Thanks for any advice you may be able to give.

  • The topic ‘W3 CDN Cloudfront: Is Push or Pull better in this case’ is closed to new replies.