diff options
author | Max Kostikov <max@kostikov.co> | 2020-04-29 14:44:42 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-04-29 14:44:42 +0200 |
commit | 446204f7d8ee83c8842dfb1e4a71f6f66fbce9e6 (patch) | |
tree | c01af6574666bf5ecc65bb5845ccad65b17f3b23 /Zotlabs | |
parent | 837dbb7a1414d9e14d588f1e425acd12a2dc87e3 (diff) | |
parent | 328900cf3b412b1e8ca7d1e447d2d0ffc19e045a (diff) | |
download | volse-hubzilla-446204f7d8ee83c8842dfb1e4a71f6f66fbce9e6.tar.gz volse-hubzilla-446204f7d8ee83c8842dfb1e4a71f6f66fbce9e6.tar.bz2 volse-hubzilla-446204f7d8ee83c8842dfb1e4a71f6f66fbce9e6.zip |
Merge branch 'dev' into 'dev'
Force browser photo revalidation
See merge request hubzilla/core!1853
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); } |