Well, I think you've been trout slapped enough.
As you probably noticed, there are a lot of different Perl folks out here, not just those that use Perl for CGI scripts. I'm sorry you had a bit of a rude welcome, but you know how certain people get. There's a reason why a camel was chosen for the Perl mascot.
I don't pretend to be a web design (or Perl) guru, but isn't there a META tag that prevents caching? Let me check google really quickly... ah, yes...
Have you considered possibly experimenting with one or more of the following HTML META tags?
- <META HTTP-EQUIV="expires" CONTENT="Wed, 1 Jan 1980 00:00:42 GMT">
- <META HTTP-EQUIV="Pragma" content="no-cache;>
Or other appropriate mechanisms to prevent caching? Now, I've never fiddled with these myself, but I've seen them mentioned enough times that I believe they may help.
Also, I note that this node shows how to disable caching in perl CGI scripts. A more recent thread dealt with a similar issue. (FWIW, both were found by using Super Search to locate nodes containing "cgi cache".)
I hope this helps....
--f
P.S. BTW, do you know of a a good site for Flash tutorials and discussion? They may have addiitional insights. You might also see if you have a good HTML expert handy.
| [reply] [d/l] [select] |
You need to set the http headers, of the text file generated by your script, to prevent it being cached by the browser (and by proxy servers).
The HTML META HTTP-EQUIV tags mentioned by footpad won't work, because, well, it's not html.
Now the headers you want are, afair: Pragma: no-cache, must-revalidate
Cache-Control: no-cache
Expires: 0
(You can check these atRFC 2616 - this is the authoritative source for information about the HTTP protocol).
Have a look here to find out how to output those headers.
You should bear in mind that the settings in the user's browser can (unfortunately) override these headers, so this method isn't *totally* reliable. What should be totally realiable, though, is to append something different to the GET part of the request, e.g. ?r=date_in_seconds_or_something, as you mention. (Of course, this will have to happen *in Flash*). If you're doing this and it doesn't seem to be working, I suggest you have another look at your Flash.
Something to watch out for: Flash 4 has this nasty habit (don't know whether they've fixed it in version 5). If you tell it to 'load variables' from a textfile, then it *doesn't wait for the textfile to be loaded*. Solution: append an extra variable called varsloaded, in the textfile, e.g. varsloaded=Y Then, in Flash, in the frame following the 'load variables', make the movie wait until varsloaded does equal Y. (You might want to include a timeout, so that if the user's internet connection is down, then the Flash doesn't just wait forever).
HTH - andy.
| [reply] [d/l] [select] |
hey:
I dunno if this helps but we used
to have a hidden form
that our flash files used to
retrieve values from
| [reply] |