如何在没有缓存php / js的情况下加载网站?

I want to lode my web site every time in every browser with NO CACHE so i tried to do it through HTMl and PHP guided from here` How to control web page caching, across all browsers?

PHP

header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
header('Pragma: no-cache'); // HTTP 1.0.
header('Expires: 0'); // Proxies.



HTML

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

and in the result i can see that in the response all parameters set properly

enter image description here

but still I can see that the web site loading old img from cache

as when i putting on the function of browser "Disable the cache when developer tool opened" i really can see how images are loading normally from server.

My question is how to avoid this ? and be sure that it is every time will load all from server ?

In addition the thing is that i can not do it trough htaccess as i need to have something like this http://url.com/?noCache=true and if it is anything else than it should load normally from cache

You can try this my code that I use everyday without problems...

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); # Date In The Past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); # Always Modified
header("Cache-Control: no-store, no-cache, must-revalidate"); # HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); # HTTP/1.0

and then in html head I have only this...

<meta name="pragma" content="no-cache">

And this combination of php/html works for me great. I hope my answer helps you to solve your issue!

I've got the same problem when i make Facebook Tab Application with multi-lingual support, so when user click to switch between languages it also changes CSS files for each language for that i need to tell browser to re-validate cache i use this code:

<IfModule mod_headers.c>
  Header set Cache-Control "no-cache, no-store, must-revalidate"
  Header set Pragma "no-cache"
  Header set Expires 0
</IfModule>