• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Need to add Cache-Control to Amazon S3 storage

Status
Not open for further replies.

d1a8lo24

Chevereto Member
So first of all everything is working fine and thank you for adding the AWS S3 storage plugin/extension/service.

But there is one thing missing and that is "Cache-Control: max-age" setting.

I think you're using the AWS SDK so I know it can be set there when you are uploading/putting and object/file how ever they want to call it to the S3 bucket.

There is a reason why this is needed and its because if you're using AWS S3 storage every time the file gets viewed it counts as a download/IO to the cost of the service not having your items with cache control you can end up paying a lot of money.

Having the header Cache-Control set to a month or more can really be helpful to reduce loading times and cost.

This will be a nice feature to add or if you can just point me to the right place on where I should add this information to the code, I will really appreciated.
 
Aside from the cache-control I also have another suggestion. I am also using cloudfront with S3 from AWS and one of the small things that I like to do is be able to access my files through cloudfronts URLs instead of S3's URLs so I like to keep my files private and not accessible through S3.

With that said it would be nice if you could add these 2 option to the AWS S3 storage service.

The cahce-control will help by making their site a little faster and reducing the calls to the images by the browser and given the option to set the ACL to private on the S3 bucket will make it easier for people to use cloudfront as theri CDN for their images and only accessible through cloudfront.

Just a thought.

I was actually able to configure these setting on the code which I hate to do but to me they are must to have a speedy site.
 
Status
Not open for further replies.
Back
Top