Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are my pages being cached when I use AddImageUrl and stream the resultant PDF to the browser?

0
10 Posted

Why are my pages being cached when I use AddImageUrl and stream the resultant PDF to the browser?

0
10

There are two possible causes. The first is that the URL is in some way being cached. Just because you’ve disabled the ABCpdf cache doesn’t mean that it’s not being cached somewhere else. See the HTML / CSS Rendering section of the documentation for details. The second is that the PDF itself is being cached. Most commonly this kind of thing can happen if you’re streaming the PDF direct to the browser and you have certain IIS settings (eg Expire Content) disabled. Your first step should be to narrow down the problem. Why not save the PDF to disk at the same time as sending it to the client? That way you can establish whether the PDF itself is being cached or whether the URL is being cached (resulting in the same PDF being created again and again). If the URL is being cached you will need to look at the dummy URL method. ABCpdf is not doing the caching but something else is and you need to work around it. If the PDF is being cached you will need to look at your IIS settings. Again ABCpdf

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123