diff options
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 495008a22..79d4e10bf 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -238,6 +238,8 @@ function import_xchan_photo($photo, $xchan, $thing = false, $force = false) { if(array_key_exists('expires', $hdrs)) $expires = strtotime($hdrs['expires']); + if($expires - 60 < time()) + $expires = time() + 60; else { $cc = ''; if(array_key_exists('cache-control', $hdrs)) |