hi
i have two websites both use cloudfront, however the tests are very different
on one tests it states no expires or cache for cloud items, the other website states all is OK
however both have the same cache and expires set in the meta on cloudfront
thanks
Are you compressing stuff? I think cloudfront requires http_version 1.0, not 1.1.
yes gzip is on server, both sites are on same dedicated server, i am beginning to think webpagetest does not understand when both expires and max-age are specified on each file on cloudfront ?? doing the test again it changes the results for the same files.
Do you have a link to a good and bad test result? The full set of headers should be available for inspecting in the result and if there’s a bug I’d like to fix it.
unfortunately not, but I will do the two tests again tmrw and post them here
thanks
Thanks, definitely looks like a bug (must be a strange one to be so selective). I opened a critical bug to track it and should have something in the next couple of days: Google Code Archive - Long-term storage for Google Code Project Hosting.
Ahh, think I figured it out. The cloud responses are serving a Date header which is in the past and the cache-control expiration is relative to that date:
Date: Wed, 24 Apr 2013 16:57:07 GMT
Cache-Control: max-age=1128800
Last-Modified: Wed, 24 Apr 2013 15:58:45 GMT
I’m guessing that you don’t actually want that Date header being served statically.
btw, that was from a test I just ran (on May 29th).
I suggest fixing the Date header. If you have it statically defined then remove it.
yes it is defined in amazon S3, so probably best then using either max-age or date but not both then
thanks