Add expired header to improve the system performance.
Recently, I add a expired header to improve the system performance. after adding this item,some static file (e.g js,html,css)
can be cached in the IIS in the specify period. So i start to describe the step how i implemented it.
1. I add a expired header in IIS tab. i set the expired day to 365.It mean the cached static file will expire after 365 days.
2. I add a version number for every static files, if i want refresh the static files right now, i can update the version number.
<link rel="Stylesheet" type="text/css" href="<%="../../resources/css/jquery-ui-1.8.10.custom.css?v="+VersionNo %>" />
3. After compare the page in before and now by HttpWatch, i found the js file have been cached. and the response time is reduced.