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 / November 2004

Tip: Looking for answers? Try searching our database.

Caching .xml and .xsl files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rahul Agarwal - 28 Oct 2004 02:40 GMT
Hi

We use few .xml and .xsl files in our web application and we found that
these files even though fairly static gets downloaded to the client's
machine everytime the page is refreshed.

Is there a way we can instruct so that these files only gets downloaded to
the client's machine if there is an update to these files.

Please help
Rahul
Ben Strackany - 09 Nov 2004 22:14 GMT
Yes, you can set the page expiration settings in IIS to the default values,
or tell the browser to cache them for 4 hours, 1 day, etc. Note that if a
user refreshes a page their browser may download those files anyway.

Signature

Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>

> Hi
>
[quoted text clipped - 7 lines]
> Please help
> Rahul
Rahul Agarwal - 11 Nov 2004 00:20 GMT
Hi Ben

Can you please give some more details as how I can instruct the browser to
cache this files, can this be done via coding? Any coding e.g. would be very
helpful or any links.

thanks
Rahul

> Yes, you can set the page expiration settings in IIS to the default values,
> or tell the browser to cache them for 4 hours, 1 day, etc. Note that if a
[quoted text clipped - 11 lines]
> > Please help
> > Rahul
Ben Strackany - 16 Nov 2004 19:16 GMT
If these are ASPX pages that progamattically generate XML, you can use the
outputcache or Response.Cache features to tell browsers to cache the
information.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
consettingcacheabilityofpage.asp


If these are actual XML & XSL files sitting on your web server, you'll have
to open IIS Manager, navigate to those files, right-click, go to properties,
switch to HTTP Headers, & use the "Enable Content Expiration" section
appropriately. It's possible that this section is set to "Expire
Immediately" which will cause users to download the pages every time. You
can uncheck "Enable Content Expiration" so that browsers will only download
the files if they change, or check "Enable Content Expiration" & set a
specific expiration value.

Best regards,

Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>

> Hi Ben
>
[quoted text clipped - 22 lines]
> > > Please help
> > > Rahul

Rate this thread:







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



©2008 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.