Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a Perl script that sends out an email with a web link. When I click on the web link in my email the link brings up the cache page and I have to refresh it everytime to get the most recent web page. Is there something in my perl script I can change to make sure the link brings up the latest web page and not bring up the cache web page in my Windows NT system?

Replies are listed 'Best First'.
Re: Getting most recent web page.
by termix (Beadle) on Jul 03, 2002 at 17:29 UTC

    Seems that the best solution will be to have that page tell your browser not to cache it (use an HTTP Header called "Expires" or if you cannot configure the HTTP headers from your web server, add a META HTTP-Equiv for the same thing. Do google search like: http://www.google.com/search?q=HTML+header+meta+tag+cache to find out more).

    Or you can put a link in the email with some random data at the end to invalidate a cache-match. i.e. call http://someserver/test.html as http://someserver/test?blahblah123123123blah

    Find a good electronic resource on HTTP. That will help clear up cache-control solutions.

    -- termix

Re: Getting most recent web page.
by Steve_p (Priest) on Jul 03, 2002 at 18:57 UTC
    If you're using Internet Explorer, then that is your problem. IE has a problem where it likes to use the cache even when contant on a page has changed. I thought the problem went away with IE 5, but I wouldn't be surprised if it crept back in.