diff options
author | Max Kostikov <max@kostikov.co> | 2020-04-29 14:38:11 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-04-29 14:38:11 +0200 |
commit | 328900cf3b412b1e8ca7d1e447d2d0ffc19e045a (patch) | |
tree | 92f639b7e5c967c4ed3960d2d8c1a45b45fd9d1d /Zotlabs | |
parent | bbca6be0f94625f541b0d985fe66df54fc8f4be2 (diff) | |
download | volse-hubzilla-328900cf3b412b1e8ca7d1e447d2d0ffc19e045a.tar.gz volse-hubzilla-328900cf3b412b1e8ca7d1e447d2d0ffc19e045a.tar.bz2 volse-hubzilla-328900cf3b412b1e8ca7d1e447d2d0ffc19e045a.zip |
Force browser photo revalidation
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Photo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php index 48e2bf4a5..1cf082bdd 100644 --- a/Zotlabs/Module/Photo.php +++ b/Zotlabs/Module/Photo.php @@ -213,7 +213,7 @@ class Photo extends \Zotlabs\Web\Controller { if(! $data) killme(); - + $etag = '"' . md5($data . $modified) . '"'; if($modified == 0) @@ -269,7 +269,7 @@ class Photo extends \Zotlabs\Web\Controller { // in the event that infrastructure caching is present. $smaxage = intval($maxage/12); - header("Cache-Control: s-maxage=" . $smaxage . ", max-age=" . $maxage . $cachecontrol); + header("Cache-Control: no-cache, s-maxage=" . $smaxage . ", max-age=" . $maxage . $cachecontrol); } |