question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aws-amplify-react S3Image component ignores cache control

See original GitHub issue

Describe the bug the S3Image component ignores cache control headers

To Reproduce

  • add <S3Image imgKey={keyToProtectedAndCacheControledResource}/>
  • open the network tab in your browser of choice
  • see the image load from s3
  • see that the image has cache control headers
  • reload
  • see the image load from s3 using a different uri(query string changed)

Expected behavior loading of the image from the same uri every time

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
VincentDevelopmentcommented, May 8, 2020

Hi! Are there any updates on this request? Would be great to have this feature!

0reactions
reesscotcommented, Dec 12, 2022

Closing this as the S3Image component has been deprecated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws-amplify-react S3Image component ignores cache control
Describe the bug the S3Image component ignores cache control headers To Reproduce add open the network tab in your browser of choice see...
Read more >
Cache-control metadata of aws S3 not caching images in ...
I am able to fetch images from S3 bucket using Storage.get(..) of aws-amplify and display it in my homepage of React app using...
Read more >
aws-amplify-react - UNPKG
'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf....
Read more >
How do I prevent CloudFront from caching certain files?
If you're using Amazon Simple Storage Service (Amazon S3) as the origin, you can add certain Cache-Control headers using object metadata.
Read more >
No Cache-Control Header for files from AWS CloudFront with ...
I've hit a few pages in Google where you can set the Header in S3 for individual objects. That's really not a productive...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found