If you need a publicly accessible url for your documents, please use the json parameter to receive a document URL rather than the document itself. The HTML to PDF conversion will be run only once and the document will be served from cache in this case.