Trying to display an image from attachment in Salesforce, on the First-time loading the image is not displayed but a blank image thumbnail is displayed when on inspect could find the Link with ID- if the link opened manually in a Tab or when the file is opened from the record, then the image is displaying in VisualForce page perfectly all the time till the session is logged out in Salesforce. if session logged out the same repeats
<apex:commandLink styleClass="slds-truncate" action="{!displaySignature}"
style="font-weight: bold;" reRender="eSignPanel">Show Signature
<apex:param name="recId" value="{!resultPanelObj['Id']}"/>
</apex:commandLink>
<apex:outputPanel rendered="{!resultPanelObj['Id'] == displaySignFromRecId && displaySignFromRecId != 'null'}">
<apex:image url="{!URLFOR($Action.Attachment.Download, eSignAttMap[resultPanelObj['Id']])}" width="25%" height="25%"
rendered="{!eSignAttMap[resultPanelObj['Id']] != 'null'}"/>
</apex:outputPanel>
PS- Link am getting is working fine When on inspecting and copying the URL then opening it manually am getting the attachment and upon opening in browsers other than chrome it is working perfectly for the very first time itself but In chrome it doesn't open for the first Time - does it have to do with cookies or cache something
https://c.na73.content.force.com/servlet/servlet.FileDownload?retURL=https%3A%2F%2Fc.na73.visual.force.com%2Fapex%2FDemoPAge&file=00P1I000003PljjLKJ&_CONFIRMATIONTOKEN=VmpFPSxNakF4T4Kwd05DEFlNbFF3TlRveU9Ub3hOaTQxTmpUJQw2Wk9vbVF1ZXCiVV9SMGg5MURYZzh2LFlUQmhOamht&common.udd.actions.ActionsUtilORIG_URI=%2Fservlet%2Fservlet.FileDownload
This is the link found when on inspecting the image URL which works fine