LanceT Posted March 8, 2007 Share Posted March 8, 2007 I am using an XML file for a MP3 playlist that gets changed whenever the user changes it, however, my browser (firefox) does not change the file when its accessed by the SWF unless i manually visit the .XML file and press refresh. How can I update a browsers cache automatically? Link to comment https://forums.phpfreaks.com/topic/41864-update-the-browsers-cache-of-files/ Share on other sites More sharing options...
jorgep Posted March 8, 2007 Share Posted March 8, 2007 You can Use this button https://addons.mozilla.org/firefox/1801/ if it is for you, If you are the developer of the swf and you are using it to play the mp3 files, you can use a random parameter passed by get like this file_to_import.xml?sid=635465 where 635465 is a random number generated in the flash. Try that it might work Link to comment https://forums.phpfreaks.com/topic/41864-update-the-browsers-cache-of-files/#findComment-203020 Share on other sites More sharing options...
LanceT Posted March 9, 2007 Author Share Posted March 9, 2007 well wat I want is to make my USERS be able to see the new cache. I don't think I can do the random number thing either. Any more suggestions? Link to comment https://forums.phpfreaks.com/topic/41864-update-the-browsers-cache-of-files/#findComment-203172 Share on other sites More sharing options...
Glyde Posted March 9, 2007 Share Posted March 9, 2007 <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past ?> From php.net Link to comment https://forums.phpfreaks.com/topic/41864-update-the-browsers-cache-of-files/#findComment-203216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.