diff options
author | Max Kostikov <max@kostikov.co> | 2018-12-17 09:34:30 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-12-17 09:34:30 +0100 |
commit | 4d8a815932113c87333a4f3e95a7bf1c56d87e73 (patch) | |
tree | 143cef12a9afb2638f828af5fe692e63c6317bf3 /Zotlabs | |
parent | 05cb4fd8971f9c196d21ab21f08e840e471ab804 (diff) | |
download | volse-hubzilla-4d8a815932113c87333a4f3e95a7bf1c56d87e73.tar.gz volse-hubzilla-4d8a815932113c87333a4f3e95a7bf1c56d87e73.tar.bz2 volse-hubzilla-4d8a815932113c87333a4f3e95a7bf1c56d87e73.zip |
Keep remote site headers for caching
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Sslify.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Zotlabs/Module/Sslify.php b/Zotlabs/Module/Sslify.php index 2891f3691..37be4423b 100644 --- a/Zotlabs/Module/Sslify.php +++ b/Zotlabs/Module/Sslify.php @@ -12,10 +12,16 @@ class Sslify extends \Zotlabs\Web\Controller { list($k,$v) = array_map("trim", explode(":", trim($l), 2)); $hdrs[strtolower($k)] = $v; } - if (array_key_exists('content-type', $hdrs)) { - $type = $hdrs['content-type']; - header('Content-Type: ' . $type); - } + + if (array_key_exists('content-type', $hdrs)) + header('Content-Type: ' . $hdrs['content-type']); + if (array_key_exists('last-modified', $hdrs)) + header('Last-Modified: ' . $hdrs['last-modified']); + if (array_key_exists('cache-control', $hdrs)) + header('Cache-Control: ' . $hdrs['cache-control']); + if (array_key_exists('expires', $hdrs)) + header('Expires: ' . $hdrs['expires']); + echo $x['body']; killme(); |