/pdf/ corrupt PDF
-
Hi there!
I have a strange problem with the handling of inline PDFs. The are being generated and presented using a rewrite endpoint ‘pdf’ after each of my posts.
If caching is disabled, the PDFs are rendered fine. If WP Super Cache is active, the generating of the PDF still works (they are stored on my server), but the display in the browser is broken.
Here are the response headers:
Cache-Control: must-revalidate, post-check=0, pre-check=0 Connection: Keep-Alive Content-Disposition: inline; filename="my-generated-pdf.pdf" Content-Transfer-Encoding: binary Content-Type: application/pdf Date: Fri, 12 Apr 2019 08:10:21 GMT Expires: 0 Keep-Alive: timeout=5, max=99 Pragma: public Server: Apache Set-Cookie: qtrans_front_language=de; expires=Sat, 11-Apr-2020 08:10:21 GMT; Max-Age=31536000; path=/ Transfer-Encoding: chunked X-Powered-By: PHP/7.2.10
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘/pdf/ corrupt PDF’ is closed to new replies.