Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YSlow recommendations. In IIS, why wouldn't Enable Content Expiration be checked by default in

i just ran yslow against my website and i had a question around Expiry Headers: YSlow gave me an : Grade F on Add Expires headers. There are 20 static components without a far-future expiration date. These are all css or js files.

Right now when i go to IIS (6.0), and go to the http headers tab, Enable Content Expiration is NOT checked. from reading this it seems like this is the right thing to do as the browser will then cache the content. So i am confused why yslow is complaining. Also, it sounds like browsers will cache this data by modified date anyway so is this whole thing meaningless ??

So if setting this is a no brainer, why isn't this the default behavior??

Can someone please clarify.

like image 826
leora Avatar asked Dec 08 '25 09:12

leora


1 Answers

There's no contradiction here. What you need to do is set content expiration on the folders which contain static content. Such as your image, css, and script folders. You can set the content expiration on a folder-basis in IIS and other web servers.

like image 169
Keltex Avatar answered Dec 09 '25 22:12

Keltex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!