Search code examples
phpwamplocalserver

Why can’t I see any change in my PHP project that runs on WampServer after I changed many things in resources?


I could not receive any change effect after all changes i had on the js in my php template in the wamp local server but after shutdown or maybe restart. i restarted wampserver services or stop and run again many times but nothing changed.


Solution

  • Maybe there is some cache system on your application or check if there is an .htaccess file with some browser cache rule.

    Other thing that you can do, just for development, is to append a random version number to your js (or css) inclusion path: myjsfile.js?v=1

    In php you can for example append the timestamp echo "myjsfile.js?v=".time();

    The versione in url force the browser to download the file and not to use the browser cached version.