When I add new blogs posts, the images that are uploaded to amazon CDN do not have any cache-control headers set.
So every few posts I have to access bucket and manually set headers.
How can I get W3TC to set cache control headers on the images uploaded/attached to posts?
Is there a setting in W3TC like “set headers for uploaded CDN images, js, css”?
Are you sure that your browser cache settings are correct for the mime-types in question?
I have browser cache settings disable because I had months ago setup custom headers.
Is there a way to enable browser cache for “images” only?
No, browser cache settings must be used to set headers properly.
I have Amazon’s s3 cache-control header set to 6 month. Our lowest score on webpagetest.org is 84 and 88 for pages with older images that has headers set.
So I guess after every month I’ll have to manually apply the settings to the uploads/month/ folder.
Would be nice to apply the cache-control headers to each image when W3TC uploads them to Amazon.
Amazon doesn’t support all of the headers in the proper way, I’ll just disable the ones that are not recommended based on the selected method.
More documentation on this is needed… what works, what doesn’t, what will.
W3-Total-Cache added the CDN feature to work with Amazon’s “existing CDN”, yet, it’s Amazon who “doesn’t support all of the headers in the proper way”?
I will have to shoot Amazon a note and request they make changes to meet W3’s headers then.
Amazon is the existing service so to me it would be more about clearly identifying what headers work or dont work and also trying to make things work from the W3 end.
But I probably have things the wrong way around.
Thanks anyway. Enabled the “browser cache” and enabled “Set expires header” for media files it works on “our” wp files on server but NOT on the uploaded amazon bucket files.
Our server returns:
…while it’s a noticeable performance hit when Amazon CDN returns:
“X-Cache: Miss from cloudfront”
Tried Amazons3 support forum:
Still can’t get w3tc to set headers upon file uploads. :/
Hopefully a future update or more info on this soon.
This feature works fine. Please submit a bug submission form so I can understand what’s happening in your case.
Awesome plugin Frederick.
I’ve got an issue with W3 Total Cache seamingly missing some files when setting expiration periods.
I have them hosted on Amazon CDN but even when I disable the CDN the experiation period is still not set.
This is the feed out from google PageSpeed.
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/content_line.png (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/featured_bg.jpg (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/grey_white_line.jpg (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/header_bg.jpg (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/second_line.jpg (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/separator_bg.png (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/images/white_line.jpg (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/js/jquery.easing.1.3.js.gzip (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/js/superfish.js.gzip (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/themes/Minimal/style.css.gzip (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/uploads/2011/01/Logo.png (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/uploads/2011/01/Phone-Button.png (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/uploads/2011/03/Click-to-call.png (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/w3tc/min/d713b/default.include.1532275694.css.gzip (expiration not specified)
* http://debtmediators.s3.amazonaws.com/wp-content/w3tc/min/d713b/default.include.2111877861.js.gzip (expiration not specified)
I’m investigating this issue, thanks.
- The topic ‘[Plugin: W3 Total Cache] Setting expire headers on imgs uploaded with new posts?’ is closed to new replies.