OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Force caching for attachements

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • 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
    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)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top