I would like to use google cloud CDN to host images for my clients. I can not discover and upload all images beforehand, and my clients may request images that are not yet stored on the CDN.
How can I add code to google cloud CDN so that if an asset does not exist yet, I can generate it before sending the HTTP response and thus not returning a 404 ?
My best bet was with google cloud functions, but that seems to be not possible (I don't see triggers linked to google cloud CDN).