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.

Support from Acquia helps fund testing for Drupal Acquia logo

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.