I include a JS (javascript) file in *.php page. When I update JS file, and reload *.php again: nothing happen becase Apache server doesn't load the updated JS file.
Anyone can know how to force Apache reload the update JS file?
Thanks,
Tuy Le
it could be the server
check your config file for
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif "access plus 7 days"
ExpiresDefault "access plus 1 second"
</IfModule>
this should make the gif files cached for 7 days, other file types for 1 second
hope this helps
Try reloading youre ms browser with <ctrl><f5> in that way the cached page will really reload. PHP or Apache has nothing to do with the js file.
Try not to include the js with php but with html:
<script src="script.js"></script> mcvdmvs
-- "It never hurts to help" -- Eek the Cat
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.