mirror of
https://github.com/php/frankenphp.git
synced 2026-04-25 01:38:10 +02:00
1eb16f1434
* feat: add Brazilian Portuguese * Translate file README.md * Update file README.md * Translate file docs/classic.md * Translate file docs/worker.md * Translate file docs/early-hints.md * Translate file docs/mercure.md * Translate file docs/x-sendfile.md * Translate file docs/config.md * Translate file docs/docker.md * Minor fixes * Translate file docs/production.md * Translate file CONTRIBUTING.md * Minor fixes * Translate file docs/performance.md * Minor fixes * Translate file docs/embed.md * Minor fixes * Minor fixes * Translate file docs/static.md * Translate file docs/compile.md * Minor fixes * Translate file docs/metrics.md * Translate file docs/laravel.md * Translate file docs/known-issues.md * Minor fixes * Translate file docs/github-actions.md * Fix build * Fix build * fix: remove text already translated * feat: update translation * fix: format comments based on other translations
562 B
562 B
Early Hints
O FrankenPHP suporta nativamente o código de status 103 Early Hints. Usar Early Hints pode melhorar o tempo de carregamento das suas páginas web em 30%.
<?php
header('Link: </style.css>; rel=preload; as=style');
headers_send(103);
// seus algoritmos e consultas SQL lentos 🤪
echo <<<'HTML'
<!DOCTYPE html>
<title>Olá FrankenPHP</title>
<link rel="stylesheet" href="style.css">
HTML;
As Early Hints são suportadas tanto pelo modo normal quanto pelo modo worker.