CDN With AWS Cloudfront and S3 Browser Caching Issue
-
There is an issue or at least my opinion it is an issue with the W3TC plugin using the CDN Features of the plugin with Amazon Cloudfront and S3 as origin for cloudfront caching. There are is No max-age or expires headers set for content that originates from S3 to the Cloudfront CDN on AWS. This because on AWS when using cloudfront with an s3 origin these headers must be set when content is put in the S3 bucket by the plugin and this is not happening. Because an S3 Bucket is the Origin AWS doesn’t allow you to override these headers on the cloundfront CDN they must be set for the each object in the S3 Bucket when the object is put in the bucket. I respectfully request that W3TC add the option to include these header values when putting objects in the S3 buckets. The reason for this is the the above headers are not being set and is effecting browser caching. This essentially from what I know is breaking browser caching for cloud front hosted content when using this plugin. If anyone knows a hack to the plugin to insert these values when putting objects into the s3 bucket that would be great. I have tried to modify the plugin for this but keep breaking the signature of the putObject when I add the need headers to the putObject functions in the lib/s3.php file. I am not the only running into this issue but information on a fix to this issue seems to be unavailable at this time from what I can tell.
- The topic ‘CDN With AWS Cloudfront and S3 Browser Caching Issue’ is closed to new replies.