473,809 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client caching

Is it possible to cache portions of a page client side.
I have som include pages that I would like to store at the clients cache.
Nov 17 '05 #1
3 1482
You can cache anything that is normally cached on the client, such as images
an other binaries, .js files, and cookies.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Pål Johansen" <mu*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Is it possible to cache portions of a page client side.
I have som include pages that I would like to store at the clients cache.

Nov 17 '05 #2
> In a sense, you don't.
True, and thats the problem.
It wont cache clock.js either, because after the server prosess that file it
will just be a part of the whole page.(clock.js is server side include)
So if one letter changed on the page the client will download all of the
page over again.(except the cached images) Even though clock.js is
unchanged.
But it wont cache
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:Ow******** ********@TK2MSF TNGP12.phx.gbl. ..
In a sense, you don't. The browser automatically caches such things. If you make a change to the file on the server, the browser will download the
latest version.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Pål Johansen" <mu*****@hotmai l.com> wrote in message
news:es******** ******@tk2msftn gp13.phx.gbl...
Yes...but how do I control that.
Take this excample. Lets say I want to client side cache "clock.js" but

not
the rest of the page.

<form action="" method="post" name="clock" id="clock" >
<!--#include file="javaScrip ts/clock.js" -->
<!--#include virtual="/Mainpages/clock.html-->
</form>

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
You can cache anything that is normally cached on the client, such as

images
an other binaries, .js files, and cookies.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Pål Johansen" <mu*****@hotmai l.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> Is it possible to cache portions of a page client side.
> I have som include pages that I would like to store at the clients

cache.
>
>



Nov 17 '05 #3
Thanx alot. Didn't know that.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uC******** ******@TK2MSFTN GP10.phx.gbl...
It wont cache clock.js either, because after the server prosess that file
it
will just be a part of the whole page.(clock.js is server side include)
If you use a server-side include that creates a script tag like the
following, only a change in the "clock.js" file would cause the browser to
re-download it:

<script type="text/javascript" src="clock.js"> </script>

The reason is that the reference to the.js file is not changed when the

page it is in changes. It works just like an image tag. Putting an image tag into a page that changes doesn't cause the browser to re-download the image with every request. It only re-downloads the page.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
"Pål Johansen" <mu*****@hotmai l.com> wrote in message
news:eO******** *****@tk2msftng p13.phx.gbl... In a sense, you don't. True, and thats the problem.
It wont cache clock.js either, because after the server prosess that file it
will just be a part of the whole page.(clock.js is server side include)
So if one letter changed on the page the client will download all of the
page over again.(except the cached images) Even though clock.js is
unchanged.
But it wont cache
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:Ow******** ********@TK2MSF TNGP12.phx.gbl. ..
In a sense, you don't. The browser automatically caches such things. If
you
make a change to the file on the server, the browser will download the
latest version.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Pål Johansen" <mu*****@hotmai l.com> wrote in message
news:es******** ******@tk2msftn gp13.phx.gbl...
> Yes...but how do I control that.
> Take this excample. Lets say I want to client side cache "clock.js"

but not
> the rest of the page.
>
> <form action="" method="post" name="clock" id="clock" >
> <!--#include file="javaScrip ts/clock.js" -->
> <!--#include virtual="/Mainpages/clock.html-->
> </form>
>
> "Kevin Spencer" <ke***@takempis .com> wrote in message
> news:%2******** ********@tk2msf tngp13.phx.gbl. ..
> > You can cache anything that is normally cached on the client, such as > images
> > an other binaries, .js files, and cookies.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > http://www.takempis.com
> > Complex things are made up of
> > lots of simple things.
> >
> > "Pål Johansen" <mu*****@hotmai l.com> wrote in message
> > news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
> > > Is it possible to cache portions of a page client side.
> > > I have som include pages that I would like to store at the

clients > cache.
> > >
> > >
> >
> >
>
>



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5821
by: Santhi | last post by:
Hi, I wish to avoid caching asp pages at the user end . Currently I have declared Response.Expires=0 at the top of my asp page. I have also used the following meta tags to prevent client side caching <meta HTTP-EQUI="PRAGMA" CONTENT="NO-CACHE"></meta> but still the pages are cached at the client side. Any help or suggesstion would be greatly appreciated to fix this issue
1
418
by: Rune | last post by:
Hi I use MMIT to render XHTML pages. How do I disable client caching? I've tried the following commands: Response.CacheControl = "private"; Response.Cache.SetNoStore();
18
7391
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure client-side javascript. I forgot to bookmark it, and now I can't find it. Anyone?
4
1389
by: Captain Chaos | last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ? The other Elements of the Page should not being cached because they change. Is it possible to cache parts of a page on the Client but not the whole page
0
1165
by: sri_san | last post by:
Hello, I am stuck with an issue and would appreciate if anyone can help me out with the same. I have a few aspx(input) pages where the user enters the selection criteria for generating reports in the next page(activeviewer.aspx-rpt assembly plugin by datadynamics). The way the application is designed is - all the processing is done on the input page and the output is dumped in a session variable and later pulled in the...
1
3412
by: James Coleman | last post by:
I am using the loginview control on my pages where a logged in user gets a different nav control than a non logged in user. The problem is, that if the client's IE page caching is set to automatic, the non-logged in view is shown to a logged in user if they had previously hit the page logged out. If caching is never, this problem doesn't occur. Any suggestions on how to get around this? Thanks --
0
2321
by: Jonaed | last post by:
Hello, I am having a problem with caching, or at least I think it is with caching. I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the <!-- #include file="..." --> tags ). So when I change "text" into something else and hit refresh, it still shows the word "text". The time actually changes with every hit of refresh. I have caching (on client computer) turned of through the...
1
1799
by: Smokey Grindle | last post by:
is there a way to cache only Javascript and images on the client? it seems that we are spending most of our time pushing out images and java scripts, but these never change! so whats the point of loading the same image on every page? evne though the page content may change the actual image and scripts dont... is there any performance tips or ways to say catch these types? such as GIF, JS,JPG, and PNG only? I have IIS 6 and ASP.NET 2.0...
2
4309
by: mark4asp | last post by:
Can I force the client to stop caching old stylesheets and javascript? In my dynamic web-site, I need to force the client to stop caching old versions of my stylesheets and javascript. Can I do this by including a querystring with the url with each external stylesheet and script file declaration? For example: <link type="text/css" rel="stylesheet" href="../images/menu.css?
5
5475
by: =?Utf-8?B?TWFyaw==?= | last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper that has the following requirements: 1. Remove the System.ServiceModel config section requirement for clients. We have our own configuration management that follows our application lifecycle (development/system test/production). Also, most of the proxies we build are for the middle-tier layer. 2. Create a wrapper to follow WCF Client best practices (proxy.close...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.