Add Expires headers
There are 21 static components without a far-future expiration date.
http://static.doers.lk/examples-offline.css
http://static.doers.lk/kendo.common.min.css
http://static.doers.lk/kendo.default.min.css
http://static.doers.lk/style.css
http://static.doers.lk/jquery.min.js
http://static.doers.lk/kendo.web.min.js
http://static.doers.lk/console.js
http://static.doers.lk/sprite.png
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
https://fbexternal-a.akamaihd.net/safe_image.php?...
http://static.doers.lk/favicon.PNG
When testing the site using yahoo YSLOW it says above message. So I don’t know how to add expire headers. Any help would be appreciated?
The easiest way to add these headers is a
.htaccessfile that adds some configuration to your server. If the assets are hosted on a server that you don’t control, there’s nothing you can do about it.Note that some hosting providers will not let you use
.htaccessfiles, so check their terms if it doesn’t seem to work.The HTML5Boilerplate project has an excellent
.htaccessfile that covers the necessary settings. See the relevant part of the file at their Github repositoryThese are the important bits
They have documented what that file does, the most important bit is that you need to rename your CSS and Javascript files whenever they change, because your visitor’s browsers will not check them again for a year, once they are cached.