Re: [PHP] Reloading changes JS files?

2008-05-29 Thread Richard Heyes
img src='/image/bulk.jpg?112344324' / anything after the question mark will get ignored by the browser. Except that the browser will think that it is a new URL that it has never seen before and it will call to the server for a fresh copy of the file. Another options is instead of a question

Re: [PHP] Reloading changes JS files?

2008-05-29 Thread Per Jessen
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

Re: [PHP] Reloading changes JS files?

2008-05-29 Thread Per Jessen
Richard Heyes wrote: 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. With Interweb Explorer you need to hold down CTRL and CLICK on refresh (as opposed to pressing CTRL+R say) to get a fresh

Re: [PHP] Reloading changes JS files?

2008-05-29 Thread Richard Heyes
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. With Interweb Explorer you need to hold down CTRL and CLICK on refresh (as opposed to pressing CTRL+R say) to get a fresh copy. I guess it

[PHP] Reloading changes JS files?

2008-05-28 Thread Skip Evans
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

Re: [PHP] Reloading changes JS files?

2008-05-28 Thread Skip Evans
Hey all, I don't know if it's practical to change the name of the file when they are updated, but another thing I found along similar lines reading up on this was something like this was: ajax/players.js?version=21 Would that also do it? Not sure what the server is sending for EXPIRES,

Re: [PHP] Reloading changes JS files?

2008-05-28 Thread Wolf
Skip Evans wrote: Hey all, I don't know if it's practical to change the name of the file when they are updated, but another thing I found along similar lines reading up on this was something like this was: ajax/players.js?version=21 Would that also do it? Not sure what the server is

Re: [PHP] Reloading changes JS files?

2008-05-28 Thread Jim Lucas
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