We are creating generating dynamic PDF with sling servlet and flushing response with
But these values are missing in response headers and pdf got generated and flushed with the filename with the servlet name without pdf extenstion.
response headers are missing it happens only in despatcher and author environment it is working fine.
Please provide suggestions.
Please check if there are apache rule to strip pdf extension? Are you able to download other PDFs e.g. from dam?