I’m beginning to plan out the architecture for a site that I am building in which the Drupal 8 CMS will be hosted on one domain and the front end will be hosted on a different server using REST views export. Blog posts often contain images within the body field, and I’d like them to be served by the front end, rather than being hosted by the CMS.
I was wondering if anyone has a suggestion on how to move those files to the front end side to reduce the # of HTTP requests. Is it possible to upload the images to the front end server in the first place? Or would a cron job that copies the image files over be the way to go? Or potentially sending those files over via the JSON using base64?
Any suggestions/guidance would be greatly appreciated. Thank you 🙂