Solved

perl not cache

Posted on 2000-04-30
5
168 Views
Last Modified: 2010-03-05
I draw a graphic online but it works for the first time it is used. How can i disable clients cache properties or force to draw each time user submits a query
0
Comment
Question by:camasuvi
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:maneshr
ID: 2765927
you can use the HTML meta tags to indicate to the client not to cache the page.

EG.

<meta http-equiv="Expires" content="Mon, 01 May 2000 13:59:27 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">

However this method is not reliable in all cases since older versions of IE dont always understand this tag properly.

A better way would to to draw the image from an HTML form using either the GET or POST method. That way the page will be reloaded every time the user requests it.

Also you can use cookies to force a page to be refreshed on every re load.
0
 

Author Comment

by:camasuvi
ID: 2765941
Adjusted points from 80 to 90
0
 

Author Comment

by:camasuvi
ID: 2765942
do u have any cookie example? or could u please explain it ?
thanks in advance
0
 

Author Comment

by:camasuvi
ID: 2766062
do u have any cookie example? or could u please explain it ?
thanks in advance
0
 
LVL 16

Accepted Solution

by:
maneshr earned 90 total points
ID: 2766075
i think in this case the meta tags should be able to solve your problem, especially since your image script is being called via an HTML form.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
compress files in RAR using perl 13 88
Excel to CSV conversion with specific columns 5 97
XPath Syntax help in conjunction with perl XML::LibXML 18 127
perl getopt long help 34 84
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question