Results 1 to 3 of 3

Thread: Cache

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345

    Cache

    I am making an application in ASP.Net with VB.Net as the code behind. How to ensure that the page is not loaded from the cache when hit the back button of the browser in ASP.NET through Javascript?
    Thanks.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Cache

    You need to send a cache control HTTP header along with the page. I have no idea how to do this in ASP.NET. Have a look at this though which gives you some information on the cache control header.

    http://www.web-caching.com/mnot_tutorial/how.html

    Something like this will prevent the page from being cached:
    Code:
    Pragma: no-cache
    Cache-Control: no-cache
    Expires: Fri, 30 Oct 1998 14:19:41 GMT
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Malaysia
    Posts
    345

    Re: Cache

    Ya, Javascript cant come into the picture when used as a client side script.
    Thanks.

Posting Permissions

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



Click Here to Expand Forum to Full Width