views:

26

answers:

1

I've recently switched to hosting the images for my site onto s3, and when i upload images to s3 i add this metatag :

"Cache-Control=public,max-age=2593000"

when I run yslow, it tells me the images have no far-flung expiry date (Expires metatag).

Do I have to add an Expires entry too ? I've searched quite a bit and it seems you really only need one or the other, but I couldn't find anything conclusive. I don't like that my yslow score has fallen :)

thanks in advance.

A: 

You can just add the Expires tag along with Cache-Control. It's not going to hurt anything, and you'll be covered for more cases. Including, apparently, yslow.

tfe