Skip to content

Instantly share code, notes, and snippets.

<?php
set_time_limit(0);
// Set a valid header so browsers pick it up correctly.
header('Content-type: text/html; charset=utf-8');
// Emulate the header BigPipe sends so we can test through Varnish.
header('Surrogate-Control: BigPipe/1.0');
// Explicitly disable caching so Varnish and other upstreams won't cache.
header("Cache-Control: no-cache, must-revalidate");