Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    is there JS that would clear cache on page load?

    The title pretty much describes it all, but once again

    Does anyone know any kind of JS function that I can place on page load that would clear the cache on that page that its on?

  • #2
    Regular Coder
    Join Date
    Jan 2008
    Location
    Willow Grove, PA
    Posts
    169
    Thanks
    1
    Thanked 27 Times in 27 Posts
    Can't be done that I know of. Big security risk if it could.

    Do a google search on the following:

    Code:
    javascript clear browser cache
    The first 3 results go into reasons why it can't and shouldn't be done.

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    If you are having problems wih pages being cahced and you do not want them t be, you should be using no cache headers.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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