Helpful Information
 
 
Category: CGI Scripts / Perl
Refresh shown script data

Hello,

I have an script list.cgi and modify.cgi.

list shows some data stored in a database, modify modifyes the database, when finished modify sends the user to list but I get the old values because they are stored in the browser's cache, so I have to refresh or reload the content. Does anybody have an idea to not to be reloading the page after each change I make?

I thinkl once I heard about a metatag to tell the browser to not to store the page but I'm not sure....

(perl script)

One of these???

<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="Tue, 01 Jan 1981 01:00:00 GMT" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />

I'm sorry Jalal, but even if it sounds fool I haven't seen your reply. I tryed with cache-control but it didn't worked all the time with IE, but after I saw your post I used the "Expire" tag and worked pretty fine, Thank you.

BTW, Happy new year...!










privacy (GDPR)