This probably can be explained much more simple, but here's my way:
Let's say I have to pages - "page1.htm" and "page2.htm".
On both pages I use a banner displayed by a banner rotator. First I am on page1 and I see banner1 on it. Then I go to page2 and see again banner1, but I would like to see banner2.
Now I click the "Back" button in my Browser (IE5.5) and it takes me back to page1 where I again see banner1 (but would like to see banner3 now)!
So, is there a way to prevent caching the banner1 WHITOUT using <META HTTP-EQUIV="Pragma" CONTENT="no-cache">? The problem is I am using <SCRIPT language=Javascript src="banner_rotator.cgi"></SCRIPT> to display the banner but my browser but the browser saves output of the CGI in "Temporary Internet Files" folder and uses it on all pages (so I have to reload a page to get a new banner).
Below is a simple Perl code I use. Any ideas?
Thanks!
-------------------------------
#!/usr/bin/perl
$mypic[0]="<a href=link.htm><img src=image.gif height=60 width=468 alt=Banner1></a>";
$mypic[1]="<a href=link.htm><img src=image2.gif height=60 width=468 alt=Banner2></a>";
$mypic[2]="<a href=link.htm><img src=image3.gif height=60 width=468 alt=Banner3></a>";
srand;
$i = int(rand(2));
print "Content-type: text/html\n\n";
print "document.write('$mypic[$i]');";
---------------------------------
Let's say I have to pages - "page1.htm" and "page2.htm".
On both pages I use a banner displayed by a banner rotator. First I am on page1 and I see banner1 on it. Then I go to page2 and see again banner1, but I would like to see banner2.
Now I click the "Back" button in my Browser (IE5.5) and it takes me back to page1 where I again see banner1 (but would like to see banner3 now)!
So, is there a way to prevent caching the banner1 WHITOUT using <META HTTP-EQUIV="Pragma" CONTENT="no-cache">? The problem is I am using <SCRIPT language=Javascript src="banner_rotator.cgi"></SCRIPT> to display the banner but my browser but the browser saves output of the CGI in "Temporary Internet Files" folder and uses it on all pages (so I have to reload a page to get a new banner).
Below is a simple Perl code I use. Any ideas?
Thanks!
-------------------------------
#!/usr/bin/perl
$mypic[0]="<a href=link.htm><img src=image.gif height=60 width=468 alt=Banner1></a>";
$mypic[1]="<a href=link.htm><img src=image2.gif height=60 width=468 alt=Banner2></a>";
$mypic[2]="<a href=link.htm><img src=image3.gif height=60 width=468 alt=Banner3></a>";
srand;
$i = int(rand(2));
print "Content-type: text/html\n\n";
print "document.write('$mypic[$i]');";
---------------------------------