Dispatcher | Last-Modified attribute missing in response header
Hi all,
Need your expert comments. We are using CQ 5.6.1
We have a requirement to capture "Last-Modified" attribute in "Response Header" for DAM assets like PDF. We are able to see "Last-Modified" attribute in response header on Author & Publish for DAM assets. But "Last-Modified" attribute is missing when we try to access the same asset from Dispatcher. Is there any extra disptacher configuration that we need to make this work. Other response header atribute are appearing on dispatcher without any issue. For your reference below are the request attribute which we can see on dispatcher.
I tried looking at Adobe post and found this link but its applicable to CQ 5.3 (I can see Last-Modified header coming even without installing this package on Author & Pub)
CQ5.3: Missing HTML Content Headers
Copy pasting for your quick reference:
Symptoms
Certain HTML content headers (i.e. Content-Type, Content-Length, Last-Modified, etc...) are missing when requesting file from DAM.
Resolution
The package BinaryProviderServletOverlay.zip contains the fix that overlay theGET.java code.
- Install the package using CQ package manager.
- Open
http://<host>:<port>/system/console/configMgr. - Select
Apache Sling Servlet/Script Resolver and Error Handlerconfig entry. - Set
Servlet Registration Root Pathto1and save.
Applies to
CQ 5.3
Below is the sample request/response header which we are getting on hitting PDF from dispatcher:
- Request Method:GET
- Status Code:200 OK
- Request Headersview source
- Response Headersview source
Please let me know if any of you have encountered same issue.
Thanks in advance.
Regards,
Rohit