﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-lion-最新评论</title><link>http://www.cnblogs.com/lion.net/CommentsRSS.aspx</link><description>我一直以为悲伤是一种美丽，一种壮丽，这世界让我如此失望，我经不起这风吹雨打的折磨，我寻找的是悲惨的结局，我追寻的是哭里的笑声，默默地完成生命的剩余……如果有来生，我不会选择以悲伤为开始，我会选择以美丽为结局......</description><language>zh-cn</language><pubDate>Wed, 26 Sep 2007 02:02:00 GMT</pubDate><lastBuildDate>Wed, 26 Sep 2007 02:02:00 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 字节流编码获取原来这么复杂，但也很简单</title><link>http://www.cnblogs.com/lion.net/archive/2008/05/19/108395.html#1202985</link><dc:creator>代码乱了</dc:creator><author>代码乱了</author><pubDate>Mon, 19 May 2008 08:34:49 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2008/05/19/108395.html#1202985</guid><description><![CDATA[还是下不了哦，老大<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">代码乱了</a> 2008-05-19 16:34 <a href="http://www.cnblogs.com/lion.net/archive/2008/05/19/108395.html#1202985#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 字节流编码获取原来这么复杂，但也很简单 - lion - 博客园</title><link>http://www.cnblogs.com/lion.net/archive/2008/04/08/108395.html#1143475</link><dc:creator>蓝奇高级验证码识别引擎QQ:631753663</dc:creator><author>蓝奇高级验证码识别引擎QQ:631753663</author><pubDate>Tue, 08 Apr 2008 15:56:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2008/04/08/108395.html#1143475</guid><description><![CDATA[出售蓝奇高级验证码识别引擎，可准确识别新浪动网淘宝CSDN等多种复杂验证码。<br><br>输出为一个标准DLL，可供VB,VC,Delphi,C#.NET,VB.NET,模拟精灵,按键精灵等多平台调用，调用方法简单，几行代码即可完成。独具特色的边缘检测字符分离、旋转倾斜纠正和通用字符匹配算法（无论字体和大小）， 使得该引擎对于像新浪、动网、淘宝、CSDN等多种验证码均有不错的识别率，是一款效果较为理想的验证码识别引擎。附详细的调用实例和代码注释等相关技术文档。 <br><br>官方网站 - <a href="http://www.purejoy.cn/yzm_advocr" target="_new" rel="nofollow">http://www.purejoy.cn/yzm_advocr</a><br>识别效果怎么样一试就知道 - DEMO下载 <a href="http://www.purejoy.cn/yzm_advocr" target="_new" rel="nofollow">http://www.purejoy.cn/yzm_advocr</a>/advocr.rar<br><br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">蓝奇高级验证码识别引擎QQ:631753663</a> 2008-04-08 23:56 <a href="http://www.cnblogs.com/lion.net/archive/2008/04/08/108395.html#1143475#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2008/03/30/904717.html#1129999</link><dc:creator>jeanso911</dc:creator><author>jeanso911</author><pubDate>Sun, 30 Mar 2008 09:26:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2008/03/30/904717.html#1129999</guid><description><![CDATA[--引用--------------------------------------------------<br>jisen: 个人觉得想法不错,但是客户端缓存的是什么样的内容呢?静态页面就很好判断是否被修改,如果是动态的话,仅仅是数据的改变,怎么样做呢?<br>--------------------------------------------------------<br><br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">jeanso911</a> 2008-03-30 17:26 <a href="http://www.cnblogs.com/lion.net/archive/2008/03/30/904717.html#1129999#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何解析被压缩过的Js文件？eval(function(p,a,c,k,e,d){.....,{}))</title><link>http://www.cnblogs.com/lion.net/archive/2007/11/12/891055.html#956260</link><dc:creator>na-na</dc:creator><author>na-na</author><pubDate>Sun, 11 Nov 2007 17:43:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/11/12/891055.html#956260</guid><description><![CDATA[js本来就很强大，跟ajax流行没有什么必然的联系<br><br>ajax就是炒概念而已，个人认为用隐藏iframe请求的方式更好一些<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">na-na</a> 2007-11-12 01:43 <a href="http://www.cnblogs.com/lion.net/archive/2007/11/12/891055.html#956260#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/28/904717.html#908656</link><dc:creator>企讯网-全国500万企业速查--深入企业精彩评论，揭露企业内幕</dc:creator><author>企讯网-全国500万企业速查--深入企业精彩评论，揭露企业内幕</author><pubDate>Thu, 27 Sep 2007 16:21:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/28/904717.html#908656</guid><description><![CDATA[收藏了<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">企讯网-全国500万企业速查--深入企业精彩评论，揭露企业内幕</a> 2007-09-28 00:21 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/28/904717.html#908656#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#908527</link><dc:creator>w</dc:creator><author>w</author><pubDate>Thu, 27 Sep 2007 13:56:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#908527</guid><description><![CDATA[学习了<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">w</a> 2007-09-27 21:56 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#908527#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#907437</link><dc:creator>jecray</dc:creator><author>jecray</author><pubDate>Thu, 27 Sep 2007 01:01:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#907437</guid><description><![CDATA[小弟也研究过这方面的内容<br />
<p><a id="homepage1_HomePageDays_DaysList_ctl09_DayItem_DayList_ctl02_TitleUrl" href="../../../../../jecray/archive/2007/09/09/HttpWebCahce.html">初探浏览器缓存实现原理  --提高性能</a></p>
<p><a id="homepage1_HomePageDays_DaysList_ctl09_DayItem_DayList_ctl01_TitleUrl" href="../../../../../jecray/archive/2007/09/09/887480.html">浏览器缓存能解决什么问题？</a></p>
<p><a id="homepage1_HomePageDays_DaysList_ctl08_DayItem_DayList_ctl00_TitleUrl" href="../../../../../jecray/archive/2007/09/10/aspdotnet_server_cache.html">asp.net服务器端缓存机制 适用范围 的介绍 --提高性能</a></p>
<p><br />
</p>
<p><a id="homepage1_HomePageDays_DaysList_ctl08_DayItem_DayList_ctl00_TitleUrl" href="../../../../../jecray/archive/2007/09/10/aspdotnet_server_cache.html"><br />
</a></p>
<br />
<br />
<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">jecray</a> 2007-09-27 09:01 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/27/904717.html#907437#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906827</link><dc:creator>Ariel Y.</dc:creator><author>Ariel Y.</author><pubDate>Wed, 26 Sep 2007 08:21:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906827</guid><description><![CDATA[@Lion<br><br>1、有一点可以肯定的是，Output Cache肯定是在服务器端进行了缓存，至于是否同时使用了last-modified报头，我没有调研没有发言权。MSDN原文如下：<br>Page Output Cache<br>The page output cache stores the contents of a processed ASP.NET page in memory. This allows ASP.NET to send a page response to a client without going through the page processing lifecycle again.<br><br>2、是有些较真:-)，不过还是希望大家描述最好准确些，于己提高沟通能力，于人免于误导新手。<br><br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">Ariel Y.</a> 2007-09-26 16:21 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906827#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906214</link><dc:creator>远航</dc:creator><author>远航</author><pubDate>Wed, 26 Sep 2007 02:02:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906214</guid><description><![CDATA[<p>&nbsp;</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #008080">&nbsp;1</span><img src="http://www.cnblogs.com/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">protected</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">void</span><span style="color: #000000">&nbsp;SendFile(OutputCSS&nbsp;file)&nbsp;<br />
</span><span style="color: #008080">&nbsp;2</span><span style="color: #000000"><img id="Codehighlighter1_41_1280_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_41_1280_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_41_1280_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_41_1280_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">&nbsp;3</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.Cookies.Clear();&nbsp;<br />
</span><span style="color: #008080">&nbsp;4</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.Clear();&nbsp;<br />
</span><span style="color: #008080">&nbsp;5</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">&nbsp;6</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);&nbsp;<br />
</span><span style="color: #008080">&nbsp;7</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">&nbsp;8</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;输出文件&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">&nbsp;9</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(si&nbsp;</span><span style="color: #000000">!=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">null</span><span style="color: #000000">)&nbsp;<br />
</span><span style="color: #008080">10</span><span style="color: #000000"><img id="Codehighlighter1_184_1253_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_184_1253_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_184_1253_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_184_1253_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">11</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;((file&nbsp;</span><span style="color: #000000">!=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">null</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&amp;&amp;</span><span style="color: #000000">&nbsp;(file.OutputData&nbsp;</span><span style="color: #000000">!=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">null</span><span style="color: #000000">))&nbsp;<br />
</span><span style="color: #008080">12</span><span style="color: #000000"><img id="Codehighlighter1_237_1250_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_237_1250_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_237_1250_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_237_1250_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">13</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;客户端缓存&nbsp;-&nbsp;仅浏览模式&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">14</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(useClientCache&nbsp;</span><span style="color: #000000">&amp;&amp;</span><span style="color: #000000">&nbsp;(currentUser.ViewMode&nbsp;</span><span style="color: #000000">==</span><span style="color: #000000">&nbsp;ViewModeEnum.LiveSite)&nbsp;</span><span style="color: #000000">&amp;&amp;</span><span style="color: #000000">&nbsp;(ImageCache.EnableCaching))&nbsp;<br />
</span><span style="color: #008080">15</span><span style="color: #000000"><img id="Codehighlighter1_360_859_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_360_859_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_360_859_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_360_859_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">16</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;从浏览器获取最后修改日期与实体值(&nbsp;etag&nbsp;)&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">17</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">string</span><span style="color: #000000">&nbsp;ifModifiedString&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;Request.Headers[</span><span style="color: #000000">"</span><span style="color: #000000">If-Modified-Since</span><span style="color: #000000">"</span><span style="color: #000000">];&nbsp;<br />
</span><span style="color: #008080">18</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(ifModifiedString&nbsp;</span><span style="color: #000000">!=</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">null</span><span style="color: #000000">)&nbsp;<br />
</span><span style="color: #008080">19</span><span style="color: #000000"><img id="Codehighlighter1_488_856_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_488_856_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_488_856_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_488_856_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">20</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;IE-浏览器:&nbsp;<br />
</span><span style="color: #008080">21</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;If-Modified-Since:&nbsp;Wed,&nbsp;19&nbsp;Jul&nbsp;2006&nbsp;11:19:59&nbsp;GMT;&nbsp;length=3350&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">22</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #000000">DateTime&nbsp;ifModified;&nbsp;<br />
</span><span style="color: #008080">23</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(DateTime.TryParse(ifModifiedString.Split(</span><span style="color: #000000">"</span><span style="color: #000000">;</span><span style="color: #000000">"</span><span style="color: #000000">.ToCharArray())[</span><span style="color: #000000">0</span><span style="color: #000000">],&nbsp;</span><span style="color: #0000ff">out</span><span style="color: #000000">&nbsp;ifModified))&nbsp;<br />
</span><span style="color: #008080">24</span><span style="color: #000000"><img id="Codehighlighter1_677_853_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_677_853_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_677_853_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_677_853_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">25</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;如果没有改变,让浏览器使用缓存数据&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">26</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(file.LastModified&nbsp;</span><span style="color: #000000">&lt;=</span><span style="color: #000000">&nbsp;ifModified.AddSeconds(</span><span style="color: #000000">1</span><span style="color: #000000">))&nbsp;<br />
</span><span style="color: #008080">27</span><span style="color: #000000"><img id="Codehighlighter1_754_850_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_754_850_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_754_850_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_754_850_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">28</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.StatusCode&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;(</span><span style="color: #0000ff">int</span><span style="color: #000000">)System.Net.HttpStatusCode.NotModified;&nbsp;<br />
</span><span style="color: #008080">29</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.End();&nbsp;<br />
</span><span style="color: #008080">30</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">return</span><span style="color: #000000">;&nbsp;<br />
</span><span style="color: #008080">31</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">32</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">33</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">34</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">35</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">36</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;准备输出&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">37</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #000000">Response.ContentType&nbsp;</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">"</span><span style="color: #000000">text/css</span><span style="color: #000000">"</span><span style="color: #000000">;&nbsp;<br />
</span><span style="color: #008080">38</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">39</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">&nbsp;(useClientCache&nbsp;</span><span style="color: #000000">&amp;&amp;</span><span style="color: #000000">&nbsp;(currentUser.ViewMode&nbsp;</span><span style="color: #000000">==</span><span style="color: #000000">&nbsp;ViewModeEnum.LiveSite)&nbsp;</span><span style="color: #000000">&amp;&amp;</span><span style="color: #000000">&nbsp;(ImageCache.EnableCaching))&nbsp;<br />
</span><span style="color: #008080">40</span><span style="color: #000000"><img id="Codehighlighter1_1011_1201_Open_Image" src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top"  alt="" /><img id="Codehighlighter1_1011_1201_Closed_Image" style="display: none" src="http://www.cnblogs.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top"  alt="" /></span><span id="Codehighlighter1_1011_1201_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.cnblogs.com/Images/dot.gif"  alt="" /></span><span id="Codehighlighter1_1011_1201_Open_Text"><span style="color: #000000">{&nbsp;<br />
</span><span style="color: #008080">41</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;发送允许客户端缓存的最后修改的标头&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">42</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #000000">Response.Cache.SetLastModified(file.LastModified);&nbsp;<br />
</span><span style="color: #008080">43</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.Cache.SetExpires(DateTime.Now.AddHours(</span><span style="color: #000000">24</span><span style="color: #000000">));&nbsp;<br />
</span><span style="color: #008080">44</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" />Response.Cache.SetCacheability(HttpCacheability.Public);&nbsp;<br />
</span><span style="color: #008080">45</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">46</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">47</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">&nbsp;添加输出数据&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">48</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #000000">Response.Write(file.OutputData);&nbsp;<br />
</span><span style="color: #008080">49</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">50</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;<br />
</span><span style="color: #008080">51</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /><br />
</span><span style="color: #008080">52</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">发送&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">53</span><span style="color: #008000"><img src="http://www.cnblogs.com/images/OutliningIndicators/InBlock.gif" align="top"  alt="" /></span><span style="color: #000000">Response.End();&nbsp;<br />
</span><span style="color: #008080">54</span><span style="color: #000000"><img src="http://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top"  alt="" />}</span></span><span style="color: #000000">&nbsp;</span></div>
<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">远航</a> 2007-09-26 10:02 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906214#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 如何利用客户端缓存对网站进行优化?</title><link>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906082</link><dc:creator>jisen</dc:creator><author>jisen</author><pubDate>Wed, 26 Sep 2007 00:55:00 GMT</pubDate><guid>http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906082</guid><description><![CDATA[个人觉得想法不错,但是客户端缓存的是什么样的内容呢?静态页面就很好判断是否被修改,如果是动态的话,仅仅是数据的改变,怎么样做呢?<br><br><div align=right><a style="text-decoration:none;" href="http://lion.net.cnblogs.com/" target="_blank">jisen</a> 2007-09-26 08:55 <a href="http://www.cnblogs.com/lion.net/archive/2007/09/26/904717.html#906082#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>