stopping client side caching

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

  1. #1

    Default 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 the browser we need to ensure the page is reloaded from the
    server and not the browser cache.

    Thanks,
    John
    John Livermore Guest

  2. Similar Questions and Discussions

    1. Stopping client side event validation
      Hi all, I've been trying unsuccessfully to stop client side event validation. I've created a simple page with a text box, a required field...
    2. flashcom: client side cant access server side
      hi all, i hav install the flash com on the PC. It work well, on the server PC, i can access and log in to the 'chat room'.. however, if im...
    3. Controls with a client side onLoad function or seting a cursor server side
      Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or...
    4. Client side and server side scripting problem
      Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve...
    5. 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...
  3. #2

    Default Re: stopping client side caching

    Here is what I use.

    <meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" />
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="pragma" content="no-cache" />

    I tried setting the expiration in IIS, but that didn't seem to work. I
    don't even know what the option "Expire pages immediately" does if it does
    NOT Expire pages immediately.

    bill

    "John Livermore" <john.livermore@nospm-inginix.com> wrote in message
    news:kgb8hv00cjmfl4f33umk9odq3mfhltoi74@4ax.com...
    > 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 the browser we need to ensure the page is reloaded from the
    > server and not the browser cache.
    >
    > Thanks,
    > John

    William F. Robertson, Jr. Guest

  4. #3

    Default Re: stopping client side caching

    Hi,

    you can add the following to a html page in the header:

    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no_cache">
    <meta http-equiv="Cache-control" content="no_cache">

    Of course, you can also do that programmatically in code. By adding these
    headers in the Response scope.

    Best regards,

    Marc Höppner
    NeoGeo

    "John Livermore" <john.livermore@nospm-inginix.com> wrote in message
    news:kgb8hv00cjmfl4f33umk9odq3mfhltoi74@4ax.com...
    > 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 the browser we need to ensure the page is reloaded from the
    > server and not the browser cache.
    >
    > Thanks,
    > John

    Marc Hoeppner 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