|
-
Oct 4th, 2002, 01:33 PM
#1
Thread Starter
Hyperactive Member
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
-
Oct 4th, 2002, 02:31 PM
#2
<%
'Turn off caching in IE
Response.CacheControl ="no-cache"
Response.AddHeader "cache-control", "private"
Response.AddHeader "Pragma", "no-cache"
Response.Expires=-1000
%>
-
Oct 7th, 2002, 12:13 PM
#3
Thread Starter
Hyperactive Member
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.
-
Oct 10th, 2002, 05:17 PM
#4
Thread Starter
Hyperactive Member
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?
-
Oct 11th, 2002, 09:54 AM
#5
Thread Starter
Hyperactive Member
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.
-
Oct 11th, 2002, 10:31 AM
#6
Thread Starter
Hyperactive Member
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.
-
Oct 11th, 2002, 02:26 PM
#7
Hyperactive Member
Enable content expiration in IIS.
-
Jun 6th, 2003, 03:24 AM
#8
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|