I'm having difficulties understanding if my idea of an image gallery will work as I can't seem to get it working.
What I have:
- An Google App Engine running with a simple website that serves products where each product can have images
- A Google Storage bucket with 1.000.000's images
What I planned to do: Add a CDN & Load balancer to the Google Storage bucket to serve the images worldwide fast on a subdomain.
Status: This works. At least it serves the images.
Problems: But I have the feeling that the architecture is not right as the Google App Engine can't be put behind the same load balancer & CDN to serve all the static content via this CDN. And I see no way to add the content caching headers. The documentation of Google says I should be able to add cache keys in the loadbalancer config. But I've been 10 times through this config and the back-end bucket config but no luck to find any. Also in the app.yaml of the Google App Engine you can't set this as the images are not servered via the App Engine....
So questions:
- Is it logical in this setup to have a GAE and a separate load
balancer with a storage bucket with the images? - How do I add cache-control headers to the CDN/bucket config of Google Cloud CDN?