Solved

perl not cache

Posted on 2000-04-30
5
165 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question about @INC variable in perl 1 65
Executing multiple sybase statements in perl dbi 2 94
Replace  text in a file 2 114
batch script for automated email 12 122
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…

828 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