Re: Reloading changes JS files?

From: Date: Thu, 29 May 2008 10:25:48 +0000
Subject: Re: Reloading changes JS files?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274801@lists.php.net to get a copy of this message
Skip Evans wrote: > Hey all, > > I have an HTML template file I read into a PHP > script and then after supplying dynamic data I > send the template to the browser with > > echo $html; > > The HTML template contains many JS files in the > <head>...</head> section referenced like this: > > <script src="ajax/players.js" > type="text/javascript"></script> > > My question is this: how can I cause the JS files > on the header.html file to be reloaded to the > browser when ever they have been modified? When you do an explicit "refresh" or "reload" in your browser, it should ignore whatever it's got cached and refetch your javascript files regardless. /Per Jessen, Zürich

« previous php.general (#274801) next »