Hello, I’m sorry but I’m from Brazil, I’m using google translator to ask for help, I hope understand!
Well, I have the following code
$seconds_to_cache = 60 * 1;//duration of the cache sent to the browser
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . ' GMT';
header('Expires: ' . $ts);
header('Pragma: cache');
header('Cache-Control: s-maxage=' . $seconds_to_cache . ', max-age=' . $seconds_to_cache);
if I use .PNG at the end of the URL, it works perfectly, but if I do not use it, it does not save in the cache