Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums OroCommerce Force caching for attachements

This topic contains 1 reply, has 2 voices, and was last updated by Michael Michael 6 months, 3 weeks ago.

  • Creator
    Topic
  • #32821

    zhex900
    Participant

    Hi,
    I am using AWS S3 to store orocommerce attachements. I want to use add Cache-Control header to the images. Adding the header in nginx breaks the application.

    No image will be served from S3.

    curl -I https://ewhale.co/media/cache/attachment/resize/8715/product_gallery_main/5a8ca568c340e531026101.jpeg
    cache-control: no-cache
    Is there somewhere in the code I can change the cache-control value?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #32822
    Michael
    Michael
    Keymaster

    When checking the response for the URL you posted, I see that this image is served by Amazon Cloudfront:

    via:1.1 b66e95045cc13b8f57a957271cfb33f6.cloudfront.net (CloudFront)
    x-amz-cf-id:NpGBu95w1ld6JoyVOQ_7tIkp2BbIHzsK3_5zH__1EZlmHdnU59h1ag==
    x-cache:Hit from cloudfront

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com