Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Pictures are cached by the web server, set the correct caching headers.
And what does yii have to do with it? Set up caching in the browser, to do this, send the necessary headers, in addition, check the size of the photo. All this lies in the plane of the server and layout, yii has nothing to do with it.
even the icons in front of the links are always redrawn, on other sites everything is fine, so this is not a browser. Pictures are small previews (
Headlines are
<head>
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width; initial-scale=0.85; maximum-scale=0.85; user-scalable=0;"/>
<meta name="yandex-verification" content="......"/>
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question