Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Nov 27, 2012 @ 12:01
    Ali Sheikh Taheri
    0

    How ImageGen works with Amazon S3 & CloudFront?

    Hi 

    I am using umbraco 4.8.1 and all the media files are stored in Amazon S3.

    I am wondering how ImageGen Pro works with external links? how the caching system works?

    If the resized image stored locally or on web server then what's the point of using CDN? 

    Any idea? 

    Cheers

    Ali

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 27, 2012 @ 12:18
    Douglas Robar
    1

    ImageGen Professional works great with remote images. It will fetch them, resize them, and cache them locally for best performance.

    If you're going to use a CDN then you need your webservers distributed, not just your media storage. The reason is that ImageGen serves images via the webserver so even if the source image is hosted elsewhere the imagegen request will be served from the webserver.

    cheers,
    doug. 

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Dec 03, 2012 @ 15:16
    Ali Sheikh Taheri
    0

    Hi Doug,

    We have just bought two licenses for Image Gen Pro which now let us to resize images that are stored on S3 on fly. 

    The problem that we have now is that the images that are resized through image gen which comes from S3 can not be cached (browser), any idea why?

    Cheers

    Ali

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 08, 2012 @ 18:04
    Douglas Robar
    0

    Hi, Ali,

    Check that you are using the 'class' feature of ImageGen Professional and that you are setting the cache time for the relevant class(es). The docs explain the details.

    Also, if you use the Google Chrome inspector or firebug and refresh the browser you'll see a 304 Not Modified response rather than using the browser-cached image. This is normal. In order to see that your brower is using the cached image and not making a request to ImageGen again you want to load the page in your browser and then put your cursor in the url field of the browser and hit the Enter key.  

    cheers,
    doug. 

Please Sign in or register to post replies

Write your reply to:

Draft