Caching when opening PDF from URL

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
AnKeilha
User
Posts: 73
Joined: Fri Apr 27, 2018 11:17 am

Caching when opening PDF from URL

Post by AnKeilha »

Hello,
when I open a PDF from a URL (SDK or standalone) the PDF seems to always load from the internet/network again, although there seems to be a file in the cache (e.g. fct6AA.tmp) that contains exactly the PDF I need. Instead a new tmp-file with the same content is created.

Is there any way to to make the cache take effect when opening PDF documents from a URL?

Regards,
Andreas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19909
Joined: Mon Jan 12, 2009 8:07 am

Re: Caching when opening PDF from URL

Post by Stefan - PDF-XChange »

Hello AnKeilha,

It might not be possible for the Editor to recognize whether there have been any changes to the file from the URL and that is why it is downloading it each time. I will ask our devs if there is any way this can be improved, but I can not make any promises at this point!

Kind regards,
Stefan
AnKeilha
User
Posts: 73
Joined: Fri Apr 27, 2018 11:17 am

Re: Caching when opening PDF from URL

Post by AnKeilha »

Hello Stefan,
thanks for the quick reply. I realize that it will be pretty much impossible to recognize, in general, if the remote resource has actually changed. For my use case, if the URL is unchanged, the content is also unchanged, because I am accessing a content manager of a document management system via HTTP.
I realise that I could just download the content and do some file based caching on the client side, but then I would lose the advantage of opening documents via URL directly.

Regards,
Andreas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19909
Joined: Mon Jan 12, 2009 8:07 am

Caching when opening PDF from URL

Post by Stefan - PDF-XChange »

:)