Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / October 2003

Tip: Looking for answers? Try searching our database.

OutputCache and dynamically generated images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Bradshaw - 30 Sep 2003 17:15 GMT
Hi,

I have an .aspx page that dynamically generates an image, by calling
Response.ContentType = "image/jpeg";
and Response.BinaryWrite( ImageData );

I am trying to use the @OutputCache directive to limit the number of times
the image is generated, but it isn't working for me. I am using the
following directive:

<%@ OutputCache Duration="300" VaryByParam="*" Location="Server" %>

But each time I hit refresh in the browser, the image is regenerated. Note
the OutputCache *does* work for me on a standard test page that spews out
HTML rather than image data.

Has anyone got OutputCache to work with generated images? Can anyone see any
potential pitfalls? I am using codebehind files - is this likely to make any
difference?

Thanks in advance,
David
aazz aazz - 05 Oct 2003 02:34 GMT
I had the same problem. I noticed that a call to Response.End() could
prevent the page from caching.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.