Caching. Sometimes, you may find that pages appear to be
cached.
If you are using AddImageUrl, it is possible that the URL is in
some way being cached. So the PDF may be changing, but the content
within it may be staying the same. See the HTML / CSS Rendering
section of the documentation for details.
Alternatively, it is possible that the PDF itself is being
cached. Most commonly, this can happen if you're streaming the PDF
direct to the browser and you have certain IIS settings (like
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 content is in some way being cached (resulting in
the same PDF being created again and again).
If the PDF is being cached, you will need to look at your IIS
settings. ABCpdf is not doing the caching (and indeed, it cannot
cache the PDF in this way); it will be something which is happening
either in IIS/ASP or on an intervening proxy server or on the
client.
|