Ensuring that your “javascript”, “CSS” important files are refreshed Automatically when files modified…..
To ensure that Important files are Automatically refreshed by a clients browser the following can be used….
<?php
echo ‘<link rel=”stylesheet” type=”text/css” href=”style.css?’ . filemtime(‘style.css’) . ‘” />’;
?>
Sample output:
<link rel=”stylesheet” type=”text/css” href=”style.css?1203291283″ />
By appending a GET value (the UNIX timestamp) to the stylesheet URL, you make the browser think the stylesheet is dynamic, so it’ll reload the stylesheet every time the modification date changes.