Solved

perl not cache

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
This video discusses moving either the default database or any database to a new volume.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now