mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
parent
0c325eb027
commit
d5d714b1ee
@ -32,6 +32,7 @@ class StaticController extends Controller
|
|||||||
{
|
{
|
||||||
$response = $this->getResponse();
|
$response = $this->getResponse();
|
||||||
$response->setHeader('Cache-Control', 'public, max-age=1814400, stale-while-revalidate=604800', true);
|
$response->setHeader('Cache-Control', 'public, max-age=1814400, stale-while-revalidate=604800', true);
|
||||||
|
$response->setHeader('Content-Type', 'image/png', true);
|
||||||
|
|
||||||
$noCache = $this->getRequest()->getHeader('Cache-Control') === 'no-cache'
|
$noCache = $this->getRequest()->getHeader('Cache-Control') === 'no-cache'
|
||||||
|| $this->getRequest()->getHeader('Pragma') === 'no-cache';
|
|| $this->getRequest()->getHeader('Pragma') === 'no-cache';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<h1><?= $this->translate('Contact details') ?></h1>
|
<h1><?= $this->translate('Contact details') ?></h1>
|
||||||
<div class="circular" style="background-image: url('<?=
|
<div class="circular" style="background-image: url('<?=
|
||||||
$this->href('static/gravatar', array('email' => $contact->contact_email))
|
$this->href('static/gravatar', array('email' => $contact->contact_email))
|
||||||
?>')"></div>
|
?>';width:120px;height:120px;)"></div>
|
||||||
|
|
||||||
<?php if (! $contact): ?>
|
<?php if (! $contact): ?>
|
||||||
<?= $this->translate('No such contact') ?>: <?= $contactName ?>
|
<?= $this->translate('No such contact') ?>: <?= $contactName ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user