Results 1 to 3 of 3

Thread: cache problem

  1. #1

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    cache problem

    I have a page that makes dynamic links based on files in a dir named 0.m3u, 1.m3u....etc. The problem is: suppose that I am browsing in a certain dir through the asp page. I play 0.m3u. It plays correctly.

    Next, I go to another dir and try playing 0.m3u. I get the stream from 0.m3u on the first page.

    I checked the m3u files and they have the correct information in them. If I go to clear the browser's cache or restart the browser and try again it works. Is there a way to handle this with asp?
    balls deep in bad code

  2. #2
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    Re: cache problem

    not sure about from within ASP, but from the client side, you can set the options in IE to check for fresh content on every visit, that should solve the problem per client.

    Of course response.write your paths on the page so you can be sure it is not actually being instructed to open that same path, or has somehow latched on to a variable portion of the filepath that it should have let go of.
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: cache problem

    You can add some html coding to the top of your asp page that forces the browser to get the latest page... ie no cache.

    Code:
    <META HTTP-EQUIV='Pragma' CONTENT='no-cache'>
    <META HTTP-EQUIV='Cache-Control' CONTENT='no-cache'>
    Might be useful?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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