Cache pages to allow re-printing

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>