Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.

 

Image resizing using CDN for restricted images

Vote:
 

It is now possible to use the CDN for resizing images as documented here:
https://docs.developers.optimizely.com/digital-experience-platform/docs/image-resizing-using-cdn

This works great, but I have one issue.

When the image is not publicly available (no read access for everyone) than this does not work.
I assume the CDN then tries to load the image by the original url (https://domain/contentassets/etc) and receives the login page html instead of the image, so it cannot resize.

I'm working on an intranet website, where all content (images included) is only available for logged in users, but would like to use this resizing functionality.
Is there any way to get this to work in this scenario, or should I just make all images publicly available?

#335668
Jan 15, 2025 14:35
Vote:
 

Hi Mark,

Technically there are ways to configure access to protected images (detailed in the CloudFlare documentation) however you would need access to CloudFlare to set that up and you wouldn't be able to get that access for a DXP instance. If there aren't any privacy issues in allowing the images to be publicly accessible, that would probably be your best bet. I believe that once the images have been resized, they're cached in the CDN and so effectively would become publicly available anyway regardless of access restrictions on the server.

If it would be an issue to make the images publicly accessible, I think you'd have to look at resizing the images on the server.

#335669
Jan 15, 2025 15:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.