Amazon S3 allows the developer to provide additional headers when uploading content to a bucket. In high traffic sites which use CDN to distribute the content stored in S3 its necesary to configure the max-age cache-control header to be able to configure when an asset should be expired. We have added the option to configure the max-age for a bucket in the configuration screen. We are providing a patch for this feature in case the mainteiner would like to add it to the S3 serice.

Comments

marcosdmyr created an issue. See original summary.

perignon’s picture

I never turn a patch down if it adds value or betters the module!

marcosdmyr’s picture

marcosdmyr’s picture

marcosdmyr’s picture

marcosdmyr’s picture

Issue tags: -max-age cache-control header +max-age cache-control header s3
perignon’s picture

Assigned: marcosdmyr » perignon
Status: Active » Needs review

Thanks for the patch. I will get it reviewed in my next cycle of work on the module.

Status: Needs review » Needs work

The last submitted patch, 3: storage_api-allow_configuration_of_max_age-2550969-1.patch, failed testing.

marcosdmyr’s picture

Assigned: perignon » marcosdmyr
marcosdmyr’s picture

marcosdmyr’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 10: storage_api-allow_configuration_of_max_age-2550969-10.patch, failed testing.

perignon’s picture

I see lots of small patches fail. I will look into it manually.

  • Perignon committed a50db30 on 7.x-1.x
    git commit -m 'Issue #2550969 by marcosdmyr: Allow configuration of max-...
perignon’s picture

Status: Needs work » Fixed
perignon’s picture

Thanks for the contributions!

marcosdmyr’s picture

Thanks to you for revising the patch Perignon!

perignon’s picture

Yeah just some minor clean ups. #title should be untranslated text to keep from calling t() twice, core does it for you :-D

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.