Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cache Busting

Status
Not open for further replies.

abraxas

Programmer
Jan 15, 2001
75
AU
Hi There,
I was reading a posting here on the concept of forcing browsers to refresh (browser busting) images after upload by using a unique identifier like time.
I was wondering if a form

form method=post and action=myscript.pl?time()

input type=hidden Value=Blah
</form>

statement in HTML would interfere with form input items eg hidden, that I want POST'd. I would experiment but I'm not around my system for a while.
Thank you
Regards
abraxas
 
Haven't done this in Perl, but in PHP I send headers that prevent browsers from caching pages. The header contains:

Pragma: no-cache (for http 1.0)
Cache-Control: no-cache, must-revalidate (for 1.1)

If it's possible in PHP, I'm sure that TMTOWTDI in Perl! Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
 
Thanks Brad,
But no good. I still need to F5 the screen once the script has displayed results.

What i want to do is some how put the time as a parameter to the script even though the script will not pick it up and use it. With a changing URL (slightly), the browser has no option but to refresh. I assume it has to be done in javascript so I've been haunting their forum.

Am I explaining this well? A nightmare pastime is to build a site and go around to crappy internet cafes and have a look at it. Very surprising with things crashing here and there. I remember a visit to a government site where there.

Thanks again for the help
abraxas
 
Maybe:

<META HTTP-EQUIV=&quot;Refresh&quot; CONTENT=&quot;n&quot;>

where n is the number of seconds you wish to display that page.

This will refresh a page continuously unless you tell it to stop.

Sorry if this isn't what you're looking for either!! (-: Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com
 
Cheers Brad but that was the first thing I tried. I even had a URL= pointing to the same script. That was pretty to watch. Not functional though. I think the
&quot;script.pl?something_random&quot; is my only hope (Obi Wan Kenobi). This problem only occurs on some browser configurations.

I do appreiciate the great advice I get from here.

thanks to all
abraxas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top