HighTechTalks DotNet Forums  

Caching .xml and .xsl files

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Caching .xml and .xsl files in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rahul Agarwal
 
Posts: n/a

Default Caching .xml and .xsl files - 10-27-2004 , 09:40 PM






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



Reply With Quote
  #2  
Old   
Ben Strackany
 
Posts: n/a

Default Re: Caching .xml and .xsl files - 11-09-2004 , 05:14 PM






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.

--
Ben Strackany
www.developmentnow.com

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


"Rahul Agarwal" <agarwal_rahul (AT) hotmail (DOT) com> wrote

Quote:
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





Reply With Quote
  #3  
Old   
Rahul Agarwal
 
Posts: n/a

Default Re: Caching .xml and .xsl files - 11-10-2004 , 07:20 PM



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

"Ben Strackany" <infoNOSPAM (AT) developmentnow (DOT) nospam.com> wrote

Quote:
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.

--
Ben Strackany
www.developmentnow.com

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


"Rahul Agarwal" <agarwal_rahul (AT) hotmail (DOT) com> wrote in message
news:OmK%23v8IvEHA.2520 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
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







Reply With Quote
  #4  
Old   
Ben Strackany
 
Posts: n/a

Default Re: Caching .xml and .xsl files - 11-16-2004 , 02:16 PM



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/de...lityofpage.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>


"Rahul Agarwal" <agarwal_rahul (AT) hotmail (DOT) com> wrote

Quote:
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

"Ben Strackany" <infoNOSPAM (AT) developmentnow (DOT) nospam.com> wrote in message
news:e12pflqxEHA.3808 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
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.

--
Ben Strackany
www.developmentnow.com

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


"Rahul Agarwal" <agarwal_rahul (AT) hotmail (DOT) com> wrote in message
news:OmK%23v8IvEHA.2520 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
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









Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.