<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Community Starter Kit</title><link>http://forums.asp.net/88.aspx</link><description>Discuss the Community Starter Kit for ASP.NET 1.x.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/3219850.aspx</link><pubDate>Tue, 09 Jun 2009 10:18:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3219850</guid><dc:creator>sumitd</dc:creator><author>sumitd</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3219850.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=3219850</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Put below lines on Page_Load:&lt;/p&gt;
Response.Cache.SetCacheability(HttpCacheability.Public)&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/3219814.aspx</link><pubDate>Tue, 09 Jun 2009 10:05:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3219814</guid><dc:creator>Saurabh7820</dc:creator><author>Saurabh7820</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3219814.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=3219814</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hope this will help you.&lt;/p&gt;&lt;p&gt;http://www.codeproject.com/KB/aspnet/CachingImagesInASPNET.aspx &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/1124196.aspx</link><pubDate>Sat, 26 Nov 2005 09:07:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1124196</guid><dc:creator>damiensawyer</dc:creator><author>damiensawyer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1124196.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=1124196</wfw:commentRss><description>Hi again,&lt;BR&gt;&lt;BR&gt;Thanks for the suggestion. I tried saving the files without the progressive thing, however it was to no avail. Oh well. &lt;BR&gt;&lt;BR&gt;I think that i'm going to give up on it for now. &lt;BR&gt;&lt;BR&gt;Thanks very much for your help. &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Damien&lt;BR&gt;</description></item><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/1124132.aspx</link><pubDate>Sat, 26 Nov 2005 05:22:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1124132</guid><dc:creator>jodywbcb</dc:creator><author>jodywbcb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1124132.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=1124132</wfw:commentRss><description>To be honest I have no idea about the versions and what they display.&amp;nbsp; I would recommend migrating to the GCN version available on both http://reddnet.com and http://csk.wbcb.com.&amp;nbsp; And see if that fixes your issue.&amp;nbsp;&amp;nbsp; You might also try saving your image as non-progressive.&amp;nbsp; There may be an issue with the binary write when images are saved with progressive.&amp;nbsp; Progressive is a mode that when an Image is saved with it (jpegs) then it does a level by level pass when displaying.&amp;nbsp; Since the image in question is your logo - (it appeared the other image seemed to be cached)...&amp;nbsp; I would see if that is causing the problem.&amp;nbsp; There is a setting in IIS to that handles streaming of images but for the life of me I foregt what it is which also forces IIS to stream images differently...&lt;br&gt;&lt;br&gt;Thanks for the compliments btw - much appreciated!&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/1124087.aspx</link><pubDate>Sat, 26 Nov 2005 02:15:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1124087</guid><dc:creator>damiensawyer</dc:creator><author>damiensawyer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1124087.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=1124087</wfw:commentRss><description>&lt;P&gt;Hi Jody, &lt;/P&gt;
&lt;P&gt;Thanks very much for your suggestion. Unfortunately, it didn't solve the problem. It did however show something suspicious. I don't have&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000ff&gt;Context.Response.ContentType = contentType.ToLower();&lt;BR&gt;&lt;FONT color=#000000&gt;or&lt;/FONT&gt; &lt;BR&gt;return image;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;anyway in my code! &lt;BR&gt;&lt;BR&gt;I have included the DisplayCommunityImage method from ImageHandler.cs (including my modifications per your suggestion). Is it possible that I am running a different/older version of the CSK? The csproj file in my solution is named &lt;EM&gt;"CommunityStarterKitCSVS_v1_0.csproj"&lt;/EM&gt;. Is there a later version than 1_0?&lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; DisplayCommunityImage(HttpContext context, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt; fileName) {&lt;/P&gt;
&lt;P&gt;SqlDataReader dr;&lt;/P&gt;
&lt;P&gt;dr = ImageUtility.GetCommunityImage(fileName);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt;(dr.Read()) {&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SqlBinary buffer= (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;[])dr["Image_imageData"];&lt;/P&gt;
&lt;P&gt;context.Response.ContentType = dr["Image_contenttype"].ToString();&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Start Damien's Changes&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;context.Response.Cache.SetCacheability(HttpCacheability.Public);&lt;/P&gt;
&lt;P&gt;context.Response.BufferOutput = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// End Damien's Changes&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;context.Response.BinaryWrite((&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;[])buffer );&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;BR&gt;I haven't really made any siginificant mods to the base application (only theme's changes), so, short of me using an older versioin, I don't know why I would be having this issue when others aren't. &lt;BR&gt;&lt;BR&gt;Any ideas?&lt;BR&gt;&lt;BR&gt;Thanks very much for your support.&lt;BR&gt;&lt;BR&gt;Damien&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;PS - I checked out your art site Jody, very impressive! &lt;BR&gt;&lt;/P&gt;</description></item><item><title>Re: Images not caching in browser</title><link>http://forums.asp.net/thread/1123228.aspx</link><pubDate>Thu, 24 Nov 2005 20:16:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1123228</guid><dc:creator>jodywbcb</dc:creator><author>jodywbcb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1123228.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=1123228</wfw:commentRss><description>It could be that it is because you have the images saved with what is called progressive rendering.&amp;nbsp; Not sure though.&amp;nbsp; &lt;br&gt;&lt;br&gt;However you could do a fix to it if you like:&lt;br&gt;&lt;br&gt;&lt;br&gt;Anywhere nywhere you see this in your ImageUtility:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ContentType = contentType.ToLower();&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return image;&lt;br&gt;&lt;br&gt;&lt;br&gt;Insert in between those lines the following: &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.Cache.SetCacheability(HttpCacheability.Public);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.BufferOutput = false;&lt;br&gt;&lt;br&gt;Would like so:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ContentType = contentType.ToLower();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.Cache.SetCacheability(HttpCacheability.Public);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.BufferOutput = false;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return image;&lt;br&gt;&lt;br&gt;&lt;br&gt;You will find those methods in both the ImageHandler.cs and ImageUtility.cs.&amp;nbsp; You need to make sure however you are only adding that for the methods that actually stream back the image to the client not for the image manipulation or save routine.&lt;br&gt;&lt;br&gt;It may or may not resolve your issue.&amp;nbsp; &lt;br&gt;&lt;br&gt;</description></item><item><title>Images not caching in browser</title><link>http://forums.asp.net/thread/1123195.aspx</link><pubDate>Thu, 24 Nov 2005 18:58:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1123195</guid><dc:creator>damiensawyer</dc:creator><author>damiensawyer</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1123195.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=88&amp;PostID=1123195</wfw:commentRss><description>Hello all, &lt;BR&gt;&lt;BR&gt;I've just gone live with my first csk. I'm a relative newbie to the ASP world and am having some issues. &lt;BR&gt;&lt;BR&gt;For reasons unknown to me, the images in the site (stored in SQL) are not caching in the browser. Every time the use goes to another page in the site, the header banner reloads. Whilst this is acceptible for broadband users, it almost makes the site unusable via slow connections.&lt;BR&gt;&lt;BR&gt;To see what I mean, you can check out the site at htttp://www.callofguadalupe.org&lt;BR&gt;&lt;BR&gt;Does anyone have any ideas?&lt;BR&gt;&lt;BR&gt;Thanks very much in advance. &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Damien Sawyer</description></item></channel></rss>