mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix typo, and don't apply server push to scripts in the body footer
This commit is contained in:
parent
06c6455488
commit
c50a4764b8
1 changed files with 2 additions and 2 deletions
|
|
@ -441,7 +441,7 @@ class FrontEndFileHandler extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
// Enable HTTP/2 server push for JS resources.
|
||||
// Enable HTTP/2 server push for CSS resources.
|
||||
if ($finalize && config('view.server_push') && strncmp($_SERVER['SERVER_PROTOCOL'], 'HTTP/2', 6) === 0)
|
||||
{
|
||||
foreach ($result as $resource)
|
||||
|
|
@ -546,7 +546,7 @@ class FrontEndFileHandler extends Handler
|
|||
}
|
||||
|
||||
// Enable HTTP/2 server push for JS resources.
|
||||
if ($finalize && config('view.server_push') && strncmp($_SERVER['SERVER_PROTOCOL'], 'HTTP/2', 6) === 0)
|
||||
if ($type === 'head' && $finalize && config('view.server_push') && strncmp($_SERVER['SERVER_PROTOCOL'], 'HTTP/2', 6) === 0)
|
||||
{
|
||||
foreach ($result as $resource)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue