Results 1 to 8 of 8

Thread: temp internet files??

  1. #1

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342

    temp internet files??

    I have some code that generates SVG images. When ever the page that creates the images is loaded, it overwrites the old images with the new ones. On some systems, when the page is loaded, it will show the images from the last request. Then, when I click refresh on the browser window, it shows the correct, updated images.

    To solve this, I wrote some code that makes the page reload once (actually, it redirects to itself once). Even after doing this, the exact same problem occured. The only way to get the new images was to manually click the refresh button. I even wrote code to make the page reload 10 times... same problem occured.

    When I went into
    Tools>Internet Options>Temporary Internet files>settings...

    I marked "Every Visit to the Page" under the "Check for newer versions of stored pages:" heading.

    This solved the problem. So, my question is, how can I make sure that my SVG images are not stored in temporary internet files?

    I've already tried these meta-tags:

    <meta http-equiv="Cache-Control" content="must-revalidate">
    <meta http-equiv="Cache=Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">

    ... and that doesn't work.

    Thanks for any ideas.

    Paul

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    <%
    'Turn off caching in IE
    Response.CacheControl ="no-cache"
    Response.AddHeader "cache-control", "private"
    Response.AddHeader "Pragma", "no-cache"
    Response.Expires=-1000
    %>
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    Thanks for the reply.

    It still gives me problems though. The caching seems to be dependent on the browsers temporary internet file settings (even on my system, where it normally functions properly, if I click "never" under "check for newer versions of stored pages", it will show a cached version of the images). Any idea why this is happening? I can only find one computer that's having the problem, but if there's one, there's gotta be more.

  4. #4

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    is putting this:
    <%
    'Turn off caching in IE
    Response.CacheControl ="no-cache"
    Response.AddHeader "cache-control", "private"
    Response.AddHeader "Pragma", "no-cache"
    Response.Expires=-1000
    %>

    in the code any different than writing this:

    <meta http-equiv="Cache=Control" content="no-cache">
    <meta http-equiv="Cache-Control" content="private">
    <meta http-equiv="Pragma" content="no-cache">

    in the HTML portion of the file?

  5. #5

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    How can I force the images to be reloaded? Any ideas on an iterative naming convention for the images? Right now, images w/ the same name get overwritten every time a request is made.

  6. #6

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    nevermind... I added a unique variable value to the end of the image name.
    Now I'll have to clean up all the old images.

  7. #7
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    Enable content expiration in IIS.

  8. #8
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    hello, i need some help along the lines of this thread...

    i open a window using window.open, this page produces a report in the page_load sub.

    but

    when i close this window and re-open it with other information, the report is loaded as before, it's like it doesn't refresh

    i have tried deleting my temporary internet files before opening it the second time, and it worked.

    but

    the code provided in this thread hasn't worked,

    please could you let me know how you resloved your problem, and how i will mine,

    thanks,

    Tom.

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