I think what he means is he wants to know how to set headers to disable
caching.
#!/usr/bin/perl
use CGI;
my $q = new CGI();
print $q->header(-type=>'text/html',
-expires=>'-1d'); #Expire the content yesterday - forces
browsers to refresh
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steven Manross
Sent: June 10, 2005 12:38 PM
To: Jerry Kassebaum; [email protected]
Subject: RE: Prevent Loading from Cache in Internet Explorer
IE->Tools->Internet Options->Settings->Change the radio box to "Every
visit to the page"
Steven
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jerry Kassebaum
Sent: Friday, June 10, 2005 8:38 AM
To: [email protected]
Subject: Prevent Loading from Cache in Internet Explorer
Sorry, but this is a repeat question.
Here's the question: How do I prevent Internet Explorer from loading from
its cache?
Here's the problem: I have an online game, biblescramble.com/ezo1.cgi, that
uses Perl to choose a random Bible verse from 600 or so, and then calls a
JavaScript to play hangman with the verse. The JavaScript has the option of
calling the Perl script to play another game.
This works fine in Firefox. But in Internet Explorer information is saved in
a cache and the game is repeated.
The only solution I have is writing a duplicate of the Perl and JavaScript
files, and having the first call the second and making a cycle. That's how I
have it set up now, which is why there are two distinct verses. I really
don't want to write 10 of each script, or how ever many it would take to
overload the cache.
There must be a simple command to prevent this problem. Any command to
reload a page is not what I'm looking for, since Perl is loading a
JavaScript page and visa-versa. I need the command, "Get this from the
server only!"
In biblescramble.com/ezo1.cgi (notice the 1) the verse is written to a text
file, and the reference is written to another, which the JavaScript reads.
So there are three permanent files on the server: Perl, JavaScript, 600
verses; and two theat keep getting overwritten: random verse, reference.
In biblescramble.com/ezo4.cgi (notice the 4) I use the Perl script to write
a new JavaScript with each use, and the JavaScript includes the verse and
reference. So there are two permanent files, Perl and 600 verses, and one
JavaScript files that keeps getting overwritten.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs