I
I
Ilya Beloborodov2017-08-14 12:54:52
Yii
Ilya Beloborodov, 2017-08-14 12:54:52

Why doesn't CHttpCacheFilter work?

public function filters()
    {
        return array(
            array(
                'CHttpCacheFilter',
                'lastModified'=>1502700378,
            ),
        );
    }

In this case, it still returns 200. In this case, YII_DEBUG == false

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Beloborodov, 2017-08-30
@kowap

This does not work if gzip compression is enabled on the server.

A
Andrey Sergovantsev, 2017-08-29
@malenkiy_rak

https://github.com/yiisoft/yii/issues/1192
Update to the latest version of yii 1.1.19 (June 8, 2017).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question