Hello, I've made a little game at http://www.mysticcrusade.com/world/map.p… and I have a little problem with it. Every character is loaded with player.php, so sometimes player A will look like player B, but it shouldn't. I'm 99% sure this is a cache problem. The computer thinks that image player A should look like image player B, so it doesn't create player B, but it should! Well, this is at the top of my code at player.php
header("Content-type: image/jpeg");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
but it will still mess up some times. In the game, you can change from a guy to a girl. walk around as one gender, change your gender, then walk around the same path. Sometimes it will load correctly, haha.
header("Content-type: image/jpeg");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
but it will still mess up some times. In the game, you can change from a guy to a girl. walk around as one gender, change your gender, then walk around the same path. Sometimes it will load correctly, haha.
Comment