Ejemplo n.º 1
0
/**
 * Test HttpResponse.
 */
function test_HttpResponse()
{
    HttpResponse::setCache(true);
    HttpResponse::setContentType('application/pdf');
    HttpResponse::setContentDisposition("test.pdf", false);
    HttpResponse::setFile('sheet.pdf');
    HttpResponse::send();
}
Ejemplo n.º 2
0
<?php

HttpResponse::setCacheControl('public');
HttpResponse::setCache(true);
HttpResponse::capture();
print "This will be cached until content changes!\n";
print "Note that this approach will only save the clients download time.\n";