473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1457
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*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.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****************@TK2MSFTNGP12.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*****@hotmail.com> wrote in message
news:es**************@tk2msftngp13.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="javaScripts/clock.js" -->
<!--#include virtual="/Mainpages/clock.html-->
</form>

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:%2****************@tk2msftngp13.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*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.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**************@TK2MSFTNGP10.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*****@hotmail.com> wrote in message
news:eO*************@tk2msftngp13.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****************@TK2MSFTNGP12.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*****@hotmail.com> wrote in message
news:es**************@tk2msftngp13.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="javaScripts/clock.js" -->
> <!--#include virtual="/Mainpages/clock.html-->
> </form>
>
> "Kevin Spencer" <ke***@takempis.com> wrote in message
> news:%2****************@tk2msftngp13.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*****@hotmail.com> wrote in message
> > news:%2****************@TK2MSFTNGP09.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
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...
1
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
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...
4
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...
0
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...
1
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...
0
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...
1
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...
2
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.