I am interested in optimizing the loading speed of my webpage by setting an expiration date for images. However, I am unsure about where to specify this.
The images on my website are loaded via CSS from Cloudfront using an S3 bucket in AWS. Can you provide guidance on how to set the expiration date?
Here is an example of how I currently load images:
.bg-header {
background: url("https://example.cloudfront.net/assets/12345.jpg");
background-size: cover;
height:480px;