Is there any way or plugin (FireFox-Chrome) to auto clear the cache of website? I hate to do that manually all the time.
Setting Set like clear cache when closing browser. But I believe that's not the solution to restart browser after every testing scenario ends.
Some options:
<filesMatch ".(css|js)$">
Header set Cache-Control "max-age=1, public"
</filesMatch>
(it might be better to change the config (if you have access) directly as .htaccess can bit slow it down)
var script = document.createElement("script");
script.src = "....." + "?" + ((new Date()).getTime());
document.head.insertBefore(script,document.head.getElementsByTagName("script")[0]);
Jason Knight
The less code you use, the less there is to break
Jason Knight
The less code you use, the less there is to break
Firefox, Chrome, chrOpera, and Vivaldi: Open the developer console (hit F12). Under the network tab choose "disable cache", leave the console open. (you don't want it in the way move it to it's own separate window).
DONE.
Generally during development I would THINK you'd have the console/document inspector open anyways for debugging.