In case you were wondering how I got the images used in the last TIL uploaded to Github, I used this hack: https://gist.github.com/vinkla/dca76249ba6b73c5dd66a4e986df4c8d
So, if using the IonReactRouter
in your Ionic React app, do note that the Page/component does not get unmounted when navigating to another component.
This is by design, per the discussion here: ionic-team/ionic-framework#20543
Confusing, but good to know!
Turns out you need can set the Cache-Control value for your S3 objects to be used with AWS Cloudfront in two ways!
The documentation at https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html says it has to be in the MetaData property.
But, you can also have it defined as a CacheControl value on the object. This can be done by passing it as the argument --cache-control max-age=0
to the aws s3 sync
command.
I hereby claim:
- I am jatin-lab49 on github.
- I am jatinlab49 (https://keybase.io/jatinlab49) on keybase.
- I have a public key ASDL2gGxoVavFI2u3i8X3sZNTTObiZazjtyEP0DGDfZj-wo
To claim this, I am signing this object:
NewerOlder