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:
Certain HTML content headers (i.e. Content-Type
, Content-Length
, Last-Modified
, etc...) are missing when requesting file from DAM.
The package BinaryProviderServletOverlay.zip
contains the fix that overlay theGET.java
code.
http://<host>:<port>/system/console/configMgr
.Apache Sling Servlet/Script Resolver and Error Handler
config entry.Servlet Registration Root Path
to 1
and save.CQ 5.3
Below is the sample request/response header which we are getting on hitting PDF from dispatcher:
Please let me know if any of you have encountered same issue.
Thanks in advance.
Regards,
Rohit
Solved! Go to Solution.
The dispatcher acts independently from CQ; if you deliver cached items from the disptacher cache, the HTTP headers in the response are solely created by the webserver, and the dispatcher isn't really involved in that delivery at all. So you need to configure your webserver to create the correct headers for you. IIRC Apache does it by default. I see from your headers that you include Akamai in your setup. I don't know Akamai that well, but maybe this header gets removed by Akamai?
Jörg
The dispatcher acts independently from CQ; if you deliver cached items from the disptacher cache, the HTTP headers in the response are solely created by the webserver, and the dispatcher isn't really involved in that delivery at all. So you need to configure your webserver to create the correct headers for you. IIRC Apache does it by default. I see from your headers that you include Akamai in your setup. I don't know Akamai that well, but maybe this header gets removed by Akamai?
Jörg
Hi Jorg,
Thanks for your reply.
When we update the config in Apache then now "Last-Modified" header is appearing. But now how do we need set the "Modification Timestamp" of the asset to this header .
Below is the reference to the change which we did in Apache:
Just a quick addendum for those who are searching for this. Since Dispatcher 4.1.11, response headers can now be cached by the dispatcher and served when requesting cached items. See https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-co... for more information.
@rohitspathak123 @Jörg_Hoh could you please help on similar problem I am having https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/set-cookie-header-not-comi...
I appreciate all your inputs.
Thanks,
Sri
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies