Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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.


    Pål Johansen Guest

  2. Similar Questions and Discussions

    1. Flash Webcam client <-> client (not client <-> server<-> client)
      Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer...
    2. Newbie Question -- Bypass client image caching?
      I'm using cfx_getImage to extract images from SQL Server...works great. The image is used on a person's contact info screen within a standard...
    3. Adding client-script to handle client events
      My code is in a search box pop-up that is opened by a parent page. From the search box, I need to be able to add code to a hyperlink in my datagrid...
    4. to prevent client side web page caching
      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...
    5. stopping client side caching
      What can be done to keep pages from caching and to hit the server each and every time they are accessed? When our users hit their back button on...
  3. #2

    Default Re: Client caching

    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
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Pål Johansen" <mummiez@hotmail.com> wrote in message
    news:%23rvsH6AXDHA.2648@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.
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: Client caching

    > 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" <kevin@takempis.com> wrote in message
    news:OwyI%23LCXDHA.1492@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
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    > "Pål Johansen" <mummiez@hotmail.com> wrote in message
    > news:es7wUlBXDHA.2476@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" <kevin@takempis.com> wrote in message
    > > news:%23Pe1ESBXDHA.1480@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
    > > > [url]http://www.takempis.com[/url]
    > > > Complex things are made up of
    > > > lots of simple things.
    > > >
    > > > "Pål Johansen" <mummiez@hotmail.com> wrote in message
    > > > news:%23rvsH6AXDHA.2648@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.
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Pål Johansen Guest

  5. #4

    Default Re: Client caching

    Thanx alot. Didn't know that.

    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:uC6HyDEXDHA.1640@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
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    >
    > "Pål Johansen" <mummiez@hotmail.com> wrote in message
    > news:eOXVxiDXDHA.208@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" <kevin@takempis.com> wrote in message
    > > news:OwyI%23LCXDHA.1492@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
    > > > [url]http://www.takempis.com[/url]
    > > > Complex things are made up of
    > > > lots of simple things.
    > > >
    > > > "Pål Johansen" <mummiez@hotmail.com> wrote in message
    > > > news:es7wUlBXDHA.2476@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" <kevin@takempis.com> wrote in message
    > > > > news:%23Pe1ESBXDHA.1480@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
    > > > > > [url]http://www.takempis.com[/url]
    > > > > > Complex things are made up of
    > > > > > lots of simple things.
    > > > > >
    > > > > > "Pål Johansen" <mummiez@hotmail.com> wrote in message
    > > > > > news:%23rvsH6AXDHA.2648@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.
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Pål Johansen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139