5. Наша веб-страница
Веб-страницы стают все больше и больше (контент, CSS,
JS, катринки, шрифты)
Количество юзеров, которые заходят с телефонов и
планшетов растет
19. // Enable GZip encoding.
ob_start("ob_gzhandler");
// Enable caching
header('Cache‐Control: public');
// Expire in one day
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');
// Set the correct MIME type, because Apache won't set it for us
header("Content‐type: text/css");
// Write everything out
echo($buffer);