Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2007, 04:40 PM
Registered User
 
Join Date: Apr 2007
Location: istanbul, , Turkey.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can i delete specified webpage cache?

i'm using webbrowser in c# form and i navigate some pages. i want to delete old pages cache when navigate new same pages. how can i do?
My application has already run so webpages caches still exist.
i delete only speciifed(url) web page's cache not all of them.

 
Old April 20th, 2007, 10:49 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I would doubt you can do this programmatically. You can set a page to not cache, but if the browser (control) already has a cached version, it won't necessarily get a new version that is marked as not cached. Refer to the documentation of the browser control. But again, I doubt you can control that, as it's a behavior of internet explorer (which is the embedded browser in the control).

-Peter
 
Old April 21st, 2007, 05:15 PM
Registered User
 
Join Date: Apr 2007
Location: istanbul, , Turkey.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by planoie
 I would doubt you can do this programmatically. You can set a page to not cache, but if the browser (control) already has a cached version, it won't necessarily get a new version that is marked as not cached. Refer to the documentation of the browser control. But again, I doubt you can control that, as it's a behavior of internet explorer (which is the embedded browser in the control).

-Peter
you said that "You can set a page to not cache". is this about html header like "no-cache"?

if above answer is no, what is it?

 
Old April 21st, 2007, 09:21 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes. That's what I'm implying. You can tell the browser not to cache a page by several different means. But thats only helpful before the browser caches it. You can't tell the browser to "un-cache" a page once it has already loaded it and cached it because now it's going to get the page from the cache and never get your "un-cache" command, even if it were possible.

-Peter




Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
php/mysql delete button and delete query dungey PHP Databases 17 April 11th, 2009 12:24 PM
delete cache files quickly Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 September 4th, 2007 09:07 AM
how to delete a row when click delete hyperlink naveenkumarg1 Pro JSP 1 August 16th, 2004 01:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.