Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hhvm&nginx duplicate response headers #22

Closed
disem opened this issue May 29, 2015 · 2 comments
Closed

hhvm&nginx duplicate response headers #22

disem opened this issue May 29, 2015 · 2 comments

Comments

@disem
Copy link

disem commented May 29, 2015

While using debug module with hhvm & nginx i'm getting duplicate response headers

Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Pragma:no-cache

The reason is RequestPanel which executes Yii::$app->get('session') for logging flash messages.
I'm not sure where is the actual reason for such behavior but after commenting out 'flashes' => $this->getFlashes(), from the save()'s return statement - headers has no duplicates.

@cebe
Copy link
Member

cebe commented May 31, 2015

thats really weird, these headers are not set by yii itself so I think it is necessary to reprocuce it with plain php and report to HHVM...

@disem
Copy link
Author

disem commented Jun 2, 2015

Got some time to take a closer look at this issue. The reason is multiple session_start() call. Reported to HHVM facebook/hhvm/issues/5437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants