Solved

perl not cache

Posted on 2000-04-30
5
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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.…
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…

734 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