diff options
| author | 2016-10-12 10:00:14 +0200 | |
|---|---|---|
| committer | 2016-10-12 10:00:14 +0200 | |
| commit | 2630393587fccb8f14c1b61208debc30d314c015 (patch) | |
| tree | f5110355f065df187d76e9009f1b3cbbe50a7640 /p/f.php | |
| parent | 3e158b5e7490cf4f7ecd7c35a6738f035378513d (diff) | |
| parent | f080774059232de636d08a0ad76bb60fd91be657 (diff) | |
Merge pull request #1304 from Alkarex/favicon-refresh
Randomize favicon refresh
Diffstat (limited to 'p/f.php')
| -rw-r--r-- | p/f.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ $txt_mtime = @filemtime($txt); header('Content-Type: image/x-icon'); -if ($ico_mtime == false || $txt_mtime > $ico_mtime || ($ico_mtime < time() - 15 * 86400)) { +if ($ico_mtime == false || $txt_mtime > $ico_mtime || ($ico_mtime < time() - (rand(15, 20) * 86400))) { if ($txt_mtime == false) { show_default_favicon(1800); exit(); @@ -92,6 +92,6 @@ if ($ico_mtime == false || $txt_mtime > $ico_mtime || ($ico_mtime < time() - 15 header('Content-Disposition: inline; filename="' . $id . '.ico"'); -if (!httpConditional($ico_mtime, 2592000, 2)) { +if (!httpConditional($ico_mtime, rand(14, 21) * 86400, 2)) { readfile($ico); } |
